aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/WebGLRenderingContext.webidl
diff options
context:
space:
mode:
authorMátyás Mustoha <matyas.mustoha@h-lab.eu>2020-01-16 12:34:45 +0100
committerMátyás Mustoha <matyas.mustoha@h-lab.eu>2020-01-17 11:42:45 +0100
commit7d5048f8852df0de2a0a86cb16e2a54f493b6e7c (patch)
treeeb26ec6de8e60f608e82a53327b303aa32171415 /components/script/dom/webidls/WebGLRenderingContext.webidl
parent0650fc319905ecd018ee0f6e059f9f40589e10b6 (diff)
downloadservo-7d5048f8852df0de2a0a86cb16e2a54f493b6e7c.tar.gz
servo-7d5048f8852df0de2a0a86cb16e2a54f493b6e7c.zip
Add support for WebGL2 uniform matrix operations
Adds support for the `uniformMatrix[234]x[234]fv` WebGL2 functions. See: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.8
Diffstat (limited to 'components/script/dom/webidls/WebGLRenderingContext.webidl')
-rw-r--r--components/script/dom/webidls/WebGLRenderingContext.webidl9
1 files changed, 6 insertions, 3 deletions
diff --git a/components/script/dom/webidls/WebGLRenderingContext.webidl b/components/script/dom/webidls/WebGLRenderingContext.webidl
index e56f08ccacf..a9af389b042 100644
--- a/components/script/dom/webidls/WebGLRenderingContext.webidl
+++ b/components/script/dom/webidls/WebGLRenderingContext.webidl
@@ -668,9 +668,12 @@ interface mixin WebGLRenderingContextBase
void uniform4iv(WebGLUniformLocation? location, Int32List data, optional GLuint srcOffset = 0,
optional GLuint srcLength = 0);
- void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value);
- void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value);
- void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value);
+ void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, Float32List data,
+ optional GLuint srcOffset = 0, optional GLuint srcLength = 0);
+ void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, Float32List data,
+ optional GLuint srcOffset = 0, optional GLuint srcLength = 0);
+ void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, Float32List data,
+ optional GLuint srcOffset = 0, optional GLuint srcLength = 0);
void useProgram(WebGLProgram? program);
void validateProgram(WebGLProgram program);