Skip to content

Commit 1079b57

Browse files
committed
[add] comment.
1 parent 53f3586 commit 1079b57

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lambda/src/core/render/buffer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ impl BufferBuilder {
7676
render_context: &mut RenderContext,
7777
) -> Result<Buffer, &'static str> {
7878
let mut buffer_builder = Self::new();
79+
80+
// Allocate a buffer with the size of the mesh's vertices.
7981
let internal_buffer = buffer_builder
8082
.buffer_builder
8183
.with_length(mesh.vertices().len() * std::mem::size_of::<Vertex>())

0 commit comments

Comments
 (0)