aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglvertexarrayobjectoes.rs
diff options
context:
space:
mode:
authorIstvan <istvan.miklos@h-lab.eu>2020-03-27 15:56:19 +0100
committerJosh Matthews <josh@joshmatthews.net>2020-04-07 15:01:39 -0400
commit62f00df79d8945e43c42a6100d87faefa1aa04e0 (patch)
tree81240c9653149649eb1dd40b90c7dc4da18d73e7 /components/script/dom/webglvertexarrayobjectoes.rs
parent5a26190fc9cb4b5ff3f4bf57cf1a88243c732e9e (diff)
downloadservo-62f00df79d8945e43c42a6100d87faefa1aa04e0.tar.gz
servo-62f00df79d8945e43c42a6100d87faefa1aa04e0.zip
Add initial support for VertexAttribI4*, VertexAttribIPointer
Adds initial support for the WebGL2 `VertexAttribI4i`, `VertexAttribI4iv`, `VertexAttribI4ui`, `VertexAttribI4uiv` and `VertexAttribIPointer` calls.
Diffstat (limited to 'components/script/dom/webglvertexarrayobjectoes.rs')
-rw-r--r--components/script/dom/webglvertexarrayobjectoes.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/webglvertexarrayobjectoes.rs b/components/script/dom/webglvertexarrayobjectoes.rs
index a3861c50110..f10c10d949b 100644
--- a/components/script/dom/webglvertexarrayobjectoes.rs
+++ b/components/script/dom/webglvertexarrayobjectoes.rs
@@ -61,6 +61,10 @@ impl WebGLVertexArrayObjectOES {
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,