Skip to content

Commit 2a8f379

Browse files
committed
[update] buffer flags, remove todo statements.
1 parent 4044e7a commit 2a8f379

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

crates/lambda-platform/src/gfx/buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl<RenderBackend: super::internal::Backend> Buffer<RenderBackend> {
4141
}
4242
}
4343

44-
/// Size of each buffer element in bytes.
44+
/// Size of the buffer in bytes.
4545
pub fn stride(&self) -> usize {
4646
return self.stride;
4747
}

lambda/examples/push_constants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ impl Component for PushConstantsExample {
179179
&mut self,
180180
render_context: &mut lambda::core::render::RenderContext,
181181
) {
182-
todo!()
182+
println!("Detaching component");
183183
}
184184

185185
fn on_event(&mut self, event: lambda::core::events::Events) {
186-
todo!()
186+
println!("Event: {:?}", event);
187187
}
188188

189189
/// Update the frame number every frame.

lambda/src/core/render/buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl BufferBuilder {
7979
.buffer_builder
8080
.with_length(mesh.vertices().len())
8181
.with_usage(Usage::VERTEX)
82-
.with_properties(Properties::CPU_VISIBLE | Properties::COHERENT)
82+
.with_properties(Properties::CPU_VISIBLE)
8383
.build(
8484
render_context.internal_mutable_gpu(),
8585
mesh.vertices().to_vec(),

0 commit comments

Comments
 (0)