summaryrefslogtreecommitdiff
path: root/opengl-bindings/src/vertex_array.rs
diff options
context:
space:
mode:
Diffstat (limited to 'opengl-bindings/src/vertex_array.rs')
-rw-r--r--opengl-bindings/src/vertex_array.rs5
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,