From 62f00df79d8945e43c42a6100d87faefa1aa04e0 Mon Sep 17 00:00:00 2001 From: Istvan Date: Fri, 27 Mar 2020 15:56:19 +0100 Subject: Add initial support for VertexAttribI4*, VertexAttribIPointer Adds initial support for the WebGL2 `VertexAttribI4i`, `VertexAttribI4iv`, `VertexAttribI4ui`, `VertexAttribI4uiv` and `VertexAttribIPointer` calls. --- components/script/dom/webglvertexarrayobject.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'components/script/dom/webglvertexarrayobject.rs') 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, -- cgit v1.2.3