graphics: use existing encoder
This commit is contained in:
@@ -58,7 +58,11 @@ pub fn new(
|
||||
..wgpu::TextureViewDescriptor::default()
|
||||
});
|
||||
|
||||
graphics.render(&view,&device,&queue,graphics::view_inv(frame_state.pos(),frame_state.angles()));
|
||||
let mut encoder=device.create_command_encoder(&wgpu::CommandEncoderDescriptor{label:None});
|
||||
|
||||
graphics.encode_commands(&mut encoder,&view,graphics::view_inv(frame_state.pos(),frame_state.angles()));
|
||||
|
||||
queue.submit([encoder.finish()]);
|
||||
|
||||
frame.present();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user