Skip to content

Commit

Permalink
Add support for vertex array attrib format f64
Browse files Browse the repository at this point in the history
  • Loading branch information
valaphee authored and grovesNL committed Jan 29, 2024
1 parent c674ad0 commit 816ef22
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
12 changes: 12 additions & 0 deletions src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 11 additions & 0 deletions src/web_sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 816ef22

Please sign in to comment.