diff options
| author | HampusM <hampus@hampusmat.com> | 2026-09-14 12:41:52 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-09-14 12:41:52 +0200 |
| commit | a0a7516b51c088ce416714eace3ad320ec04a5fb (patch) | |
| tree | 37336d6dcf78952ae2840442d8ba4e7b7fcd45e5 /opengl-bindings/src/vertex_array.rs | |
| parent | a8f7f5d12ea47175dfb361f9b3e7aa9520985d5c (diff) | |
Diffstat (limited to 'opengl-bindings/src/vertex_array.rs')
| -rw-r--r-- | opengl-bindings/src/vertex_array.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/opengl-bindings/src/vertex_array.rs b/opengl-bindings/src/vertex_array.rs index 84fdc42..723bbfb 100644 --- a/opengl-bindings/src/vertex_array.rs +++ b/opengl-bindings/src/vertex_array.rs @@ -13,6 +13,7 @@ pub struct VertexArray impl VertexArray { + #[tracing::instrument(skip(current_context))] #[must_use] pub fn new(current_context: &MaybeCurrentContextWithFns) -> Self { @@ -31,6 +32,7 @@ impl VertexArray /// Returns `Err` if: /// - `vertex_offset` is too large /// - `vertex_cnt` is too large + #[tracing::instrument(skip(current_context))] pub fn draw_arrays( current_context: &MaybeCurrentContextWithFns, primitive_kind: PrimitiveKind, @@ -69,6 +71,7 @@ impl VertexArray /// /// # Errors /// Returns `Err` if `cnt` is too large. + #[tracing::instrument(skip(current_context))] pub fn draw_elements( current_context: &MaybeCurrentContextWithFns, DrawElementsOptions { @@ -113,6 +116,7 @@ impl VertexArray Ok(()) } + #[tracing::instrument(skip(current_context))] pub fn bind_element_buffer( &self, current_context: &MaybeCurrentContextWithFns, @@ -126,6 +130,7 @@ impl VertexArray } } + #[tracing::instrument(skip(current_context))] pub fn bind_vertex_buffer<VertexBufferItem: ReprC>( &self, current_context: &MaybeCurrentContextWithFns, @@ -163,6 +168,7 @@ impl VertexArray Ok(()) } + #[tracing::instrument(skip(current_context))] pub fn enable_attrib( &self, current_context: &MaybeCurrentContextWithFns, @@ -177,6 +183,7 @@ impl VertexArray } } + #[tracing::instrument(skip(current_context))] pub fn disable_attrib( &self, current_context: &MaybeCurrentContextWithFns, @@ -191,6 +198,7 @@ impl VertexArray } } + #[tracing::instrument(skip(current_context))] pub fn set_attrib_format( &self, current_context: &MaybeCurrentContextWithFns, @@ -215,6 +223,7 @@ impl VertexArray } /// Associate a vertex attribute and a vertex buffer binding. + #[tracing::instrument(skip(current_context))] pub fn set_attrib_vertex_buf_binding( &self, current_context: &MaybeCurrentContextWithFns, @@ -231,11 +240,13 @@ impl VertexArray } } + #[tracing::instrument(skip(current_context))] pub fn bind(&self, current_context: &MaybeCurrentContextWithFns) { unsafe { current_context.fns().BindVertexArray(self.array) } } + #[tracing::instrument(skip(current_context))] pub fn delete(&self, current_context: &MaybeCurrentContextWithFns) { unsafe { |
