gpu-tracing icon indicating copy to clipboard operation
gpu-tracing copied to clipboard

thread panic on get_current_texture in ubuntu

Open trevordblack opened this issue 1 year ago • 0 comments

A thread panic is through for Timeout on get_current_texture at the end of chapter 2.

                WindowEvent::RedrawRequested => {
                    // Wait for the next available frame buffer.
                    //let frame: wgpu::SurfaceTexture = surface
                    //    .get_current_texture()
                    //    .expect("failed to get current texture");

                    // TODO: draw frame

                    //frame.present();
                    window.request_redraw();
                }

This thread panic does not exist for the completed code at the end of the book.

trevordblack avatar Jul 13 '24 01:07 trevordblack