wgpu 0.16

This commit is contained in:
David Huculak 2023-04-20 21:28:47 -04:00
parent 99fc717b7c
commit 8122904ca4
4 changed files with 6 additions and 7 deletions

View file

@ -72,7 +72,6 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
backends: backend,
..Default::default()
});
let surface = unsafe { instance.create_surface(&window) }?;
let (format, (device, queue)) = futures::executor::block_on(async {
@ -99,7 +98,7 @@ pub fn main() -> Result<(), Box<dyn std::error::Error>> {
capabilities
.formats
.iter()
.filter(|format| format.describe().srgb)
.filter(|format| format.is_srgb())
.copied()
.next()
.or_else(|| capabilities.formats.first().copied())