Upgrade to wgpu 24 (#127)
This commit is contained in:
parent
7264e5f324
commit
bff018f6af
7 changed files with 23 additions and 15 deletions
|
@ -47,7 +47,7 @@ impl WindowState {
|
|||
let scale_factor = window.scale_factor();
|
||||
|
||||
// Set up surface
|
||||
let instance = Instance::new(InstanceDescriptor::default());
|
||||
let instance = Instance::new(&InstanceDescriptor::default());
|
||||
let adapter = instance
|
||||
.request_adapter(&RequestAdapterOptions::default())
|
||||
.await
|
||||
|
|
|
@ -43,7 +43,7 @@ impl WindowState {
|
|||
let scale_factor = window.scale_factor();
|
||||
|
||||
// Set up surface
|
||||
let instance = Instance::new(InstanceDescriptor::default());
|
||||
let instance = Instance::new(&InstanceDescriptor::default());
|
||||
let adapter = instance
|
||||
.request_adapter(&RequestAdapterOptions::default())
|
||||
.await
|
||||
|
|
|
@ -62,7 +62,7 @@ impl WindowState {
|
|||
let scale_factor = window.scale_factor() as f32;
|
||||
|
||||
// Set up surface
|
||||
let instance = Instance::new(InstanceDescriptor::default());
|
||||
let instance = Instance::new(&InstanceDescriptor::default());
|
||||
let adapter = instance
|
||||
.request_adapter(&RequestAdapterOptions::default())
|
||||
.await
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue