Revert "update to wgpu 0.20.0 (#93)"

This reverts commit 670140e2a1.
This commit is contained in:
Héctor Ramón Jiménez 2024-05-08 19:25:00 +02:00
parent 883b9170b4
commit 0a688982e9
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 12 additions and 18 deletions

View file

@ -25,13 +25,11 @@ async fn run() {
// Set up window
let (width, height) = (800, 600);
let event_loop = EventLoop::new().unwrap();
let window = Arc::new(
WindowBuilder::new()
.with_inner_size(LogicalSize::new(width as f64, height as f64))
.with_title("glyphon hello world")
.build(&event_loop)
.unwrap(),
);
let window = Arc::new(WindowBuilder::new()
.with_inner_size(LogicalSize::new(width as f64, height as f64))
.with_title("glyphon hello world")
.build(&event_loop)
.unwrap());
let size = window.inner_size();
let scale_factor = window.scale_factor();
@ -53,9 +51,7 @@ async fn run() {
.await
.unwrap();
let surface = instance
.create_surface(window.clone())
.expect("Create surface");
let surface = instance.create_surface(window.clone()).expect("Create surface");
let swapchain_format = TextureFormat::Bgra8UnormSrgb;
let mut config = SurfaceConfiguration {
usage: TextureUsages::RENDER_ATTACHMENT,