update to wgpu 0.20.0 (#93)
This commit is contained in:
parent
3e281d1828
commit
670140e2a1
3 changed files with 20 additions and 14 deletions
|
@ -25,11 +25,13 @@ 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();
|
||||
|
||||
|
@ -51,7 +53,9 @@ 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue