|
|
|
@ -15,6 +15,9 @@ struct State {
|
|
|
|
|
queue: wgpu::Queue,
|
|
|
|
|
config: wgpu::SurfaceConfiguration,
|
|
|
|
|
size: winit::dpi::PhysicalSize<u32>,
|
|
|
|
|
// The window must be declared after the surface so
|
|
|
|
|
// it gets dropped after it as the surface contains
|
|
|
|
|
// unsafe references to the window's resources.
|
|
|
|
|
window: Window,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|