diff options
| author | HampusM <hampus@hampusmat.com> | 2026-09-22 14:40:53 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-09-22 14:40:53 +0200 |
| commit | 0653c41f12a6e5bed35723b401c5b4d9505059bf (patch) | |
| tree | 5a01db514c9c9e9d841e1252fe99d6e1016e3d53 /opengl-bindings/src/vertex_array.rs | |
| parent | 6ccfd7833272638953a2b3548f30ec0a6f3149de (diff) | |
refactor(opengl-bindings): fix clippy lints
Diffstat (limited to 'opengl-bindings/src/vertex_array.rs')
| -rw-r--r-- | opengl-bindings/src/vertex_array.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/opengl-bindings/src/vertex_array.rs b/opengl-bindings/src/vertex_array.rs index f46b07d..c4fc62f 100644 --- a/opengl-bindings/src/vertex_array.rs +++ b/opengl-bindings/src/vertex_array.rs @@ -140,6 +140,11 @@ impl VertexArray } } + /// Binds a vertex buffer to the index `binding_index` in this vertex array. + /// + /// # Errors + /// Returns `Err` if either `offset` or `vertex_size` in `vertex_buffer_spec` is too + /// large. #[tracing::instrument(skip(current_context))] pub fn bind_vertex_buffer<VertexBufferItem: ReprC>( &self, |
