aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglvertexarrayobject.rs
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2020-04-07 17:24:35 -0400
committerGitHub <noreply@github.com>2020-04-07 17:24:35 -0400
commit7b5ec99d25be61a7a3ec2f630c31a9f02c7b849b (patch)
treed32fd4a47e1014c17c45bd5eeac856ba46018cf4 /components/script/dom/webglvertexarrayobject.rs
parent5a26190fc9cb4b5ff3f4bf57cf1a88243c732e9e (diff)
parent66b2b3293de3ae99f807d30420e34affa1d3770d (diff)
downloadservo-7b5ec99d25be61a7a3ec2f630c31a9f02c7b849b.tar.gz
servo-7b5ec99d25be61a7a3ec2f630c31a9f02c7b849b.zip
Auto merge of #26135 - jdm:vertex_attrib_i4, r=jdm
Add initial support for VertexAttribI4* and VertexAttribIPointer Add initial support for the WebGL2 `VertexAttribI4i`, `VertexAttribI4iv`, `VertexAttribI4ui`, `VertexAttribI4uiv` and `VertexAttribIPointer` calls. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #26134 and fix #26123. - [x] There are tests for these changes
Diffstat (limited to 'components/script/dom/webglvertexarrayobject.rs')
-rw-r--r--components/script/dom/webglvertexarrayobject.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/webglvertexarrayobject.rs b/components/script/dom/webglvertexarrayobject.rs
index 098423d860a..b425a7c4219 100644
--- a/components/script/dom/webglvertexarrayobject.rs
+++ b/components/script/dom/webglvertexarrayobject.rs
@@ -61,6 +61,10 @@ impl WebGLVertexArrayObject {
self.array_object.get_vertex_attrib(index)
}
+ pub fn set_vertex_attrib_type(&self, index: u32, type_: u32) {
+ self.array_object.set_vertex_attrib_type(index, type_);
+ }
+
pub fn vertex_attrib_pointer(
&self,
index: u32,