public WebGLUniformLocation GetUniformLocation(WebGLProgram program, string name) { var jsObject = (JSObject)Invoke("getUniformLocation", program?.Handle, name); var wrapper = new WebGLUniformLocation(jsObject); return(wrapper); }
public void UniformMatrix4fv(WebGLUniformLocation location, bool transpose, float[] value) { var array = CastNativeArray(value); Invoke("uniformMatrix4fv", location?.Handle, transpose, array); }
public void Uniform2f(WebGLUniformLocation location, object v0, object v1) => Invoke("uniform2f", location?.Handle, v0, v1);
public void Uniform1i(WebGLUniformLocation location, object x) => Invoke("uniform1i", location?.Handle, x);