diff options
author | bors-servo <servo-ops@mozilla.com> | 2020-04-07 17:24:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-07 17:24:35 -0400 |
commit | 7b5ec99d25be61a7a3ec2f630c31a9f02c7b849b (patch) | |
tree | d32fd4a47e1014c17c45bd5eeac856ba46018cf4 /components/script/dom/webglvertexarrayobject.rs | |
parent | 5a26190fc9cb4b5ff3f4bf57cf1a88243c732e9e (diff) | |
parent | 66b2b3293de3ae99f807d30420e34affa1d3770d (diff) | |
download | servo-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.rs | 4 |
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, |