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.
A thread panic is through for
Timeouton get_current_texture at the end of chapter 2.This thread panic does not exist for the completed code at the end of the book.