Skip to content

Commit

Permalink
Create a second encoder in hello-triangle example
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia committed Aug 28, 2021
1 parent 39e8921 commit 1568d85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wgpu/examples/hello-triangle/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ async fn run(event_loop: EventLoop<()>, window: Window) {
let view = frame
.texture
.create_view(&wgpu::TextureViewDescriptor::default());

let e2 = device.create_command_encoder(&wgpu::CommandEncoderDescriptor { label: None });
queue.submit(Some(e2.finish()));

let mut encoder =
device.create_command_encoder(&wgpu::CommandEncoderDescriptor { label: None });
{
Expand Down

0 comments on commit 1568d85

Please sign in to comment.