RayTracing / gpu-tracing

Ray tracing on GPU systems
https://raytracing.github.io/gpu-tracing
Creative Commons Attribution 4.0 International
100 stars 6 forks source link

thread panic on get_current_texture in ubuntu #13

Open trevordblack opened 2 months ago

trevordblack commented 2 months ago

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.