File tree Expand file tree Collapse file tree
crates/lambda-platform/src/gfx Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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 ( ) ,
You can’t perform that action at this time.
0 commit comments