diff --git a/src/lib.rs b/src/lib.rs index b829958..6ca3e38 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1071,6 +1071,15 @@ pub trait HasContext { relative_offset: u32, ); + unsafe fn vertex_array_attrib_format_f64( + &self, + vao: Self::VertexArray, + index: u32, + size: i32, + data_type: u32, + relative_offset: u32, + ); + unsafe fn vertex_array_element_buffer( &self, vao: Self::VertexArray, diff --git a/src/native.rs b/src/native.rs index 2736a0f..3604bdb 100644 --- a/src/native.rs +++ b/src/native.rs @@ -2450,6 +2450,18 @@ impl HasContext for Context { gl.VertexArrayAttribIFormat(vao.0.get(), index, size, data_type, relative_offset); } + unsafe fn vertex_array_attrib_format_f64( + &self, + vao: Self::VertexArray, + index: u32, + size: i32, + data_type: u32, + relative_offset: u32, + ) { + let gl = &self.raw; + gl.VertexArrayAttribLFormat(vao.0.get(), index, size, data_type, relative_offset); + } + unsafe fn vertex_array_element_buffer( &self, vao: Self::VertexArray, diff --git a/src/web_sys.rs b/src/web_sys.rs index f66654d..1ca7792 100644 --- a/src/web_sys.rs +++ b/src/web_sys.rs @@ -4154,6 +4154,17 @@ impl HasContext for Context { unimplemented!() } + unsafe fn vertex_array_attrib_format_f64( + &self, + _vao: Self::VertexArray, + _index: u32, + _size: i32, + _data_type: u32, + _relative_offset: u32, + ) { + unimplemented!() + } + unsafe fn vertex_array_element_buffer( &self, _vao: Self::VertexArray,