mirror of
https://github.com/sotrh/learn-wgpu.git
synced 2024-11-16 06:12:55 +00:00
Fixing my mistakes
This commit is contained in:
parent
4ff3fbd19a
commit
f0e150a190
@ -74,12 +74,10 @@ impl Display {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn resize(&mut self, new_size: winit::dpi::PhysicalSize<u32>) {
|
pub fn resize(&mut self, width: u32, height: u32) {
|
||||||
self.size = new_size;
|
self.sc_desc.width = width;
|
||||||
self.sc_desc.width = new_size.width;
|
self.sc_desc.height = height;
|
||||||
self.sc_desc.height = new_size.height;
|
|
||||||
self.swap_chain = self.device.create_swap_chain(&self.surface, &self.sc_desc);
|
self.swap_chain = self.device.create_swap_chain(&self.surface, &self.sc_desc);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user