Update wgpu
to 22.0
This commit is contained in:
parent
ce412b3954
commit
0d7ba1bba4
3 changed files with 5 additions and 3 deletions
|
@ -8,7 +8,7 @@ repository = "https://github.com/grovesNL/glyphon"
|
||||||
license = "MIT OR Apache-2.0 OR Zlib"
|
license = "MIT OR Apache-2.0 OR Zlib"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
wgpu = { version = "0.20", default-features = false, features = ["wgsl"] }
|
wgpu = { version = "22.0", default-features = false, features = ["wgsl"] }
|
||||||
etagere = "0.2.10"
|
etagere = "0.2.10"
|
||||||
cosmic-text = "0.12"
|
cosmic-text = "0.12"
|
||||||
lru = { version = "0.12.1", default-features = false }
|
lru = { version = "0.12.1", default-features = false }
|
||||||
|
@ -16,5 +16,5 @@ rustc-hash = "2.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
winit = { version = "0.29.10", features = ["rwh_05"] }
|
winit = { version = "0.29.10", features = ["rwh_05"] }
|
||||||
wgpu = { version = "0.20", default-features = true }
|
wgpu = { version = "22.0", default-features = true }
|
||||||
pollster = "0.3.0"
|
pollster = "0.3.0"
|
||||||
|
|
|
@ -4,7 +4,7 @@ use glyphon::{
|
||||||
};
|
};
|
||||||
use wgpu::{
|
use wgpu::{
|
||||||
CommandEncoderDescriptor, CompositeAlphaMode, DeviceDescriptor, Features, Instance,
|
CommandEncoderDescriptor, CompositeAlphaMode, DeviceDescriptor, Features, Instance,
|
||||||
InstanceDescriptor, Limits, LoadOp, MultisampleState, Operations, PresentMode,
|
InstanceDescriptor, Limits, LoadOp, MemoryHints, MultisampleState, Operations, PresentMode,
|
||||||
RenderPassColorAttachment, RenderPassDescriptor, RequestAdapterOptions, SurfaceConfiguration,
|
RenderPassColorAttachment, RenderPassDescriptor, RequestAdapterOptions, SurfaceConfiguration,
|
||||||
TextureFormat, TextureUsages, TextureViewDescriptor,
|
TextureFormat, TextureUsages, TextureViewDescriptor,
|
||||||
};
|
};
|
||||||
|
@ -47,6 +47,7 @@ async fn run() {
|
||||||
label: None,
|
label: None,
|
||||||
required_features: Features::empty(),
|
required_features: Features::empty(),
|
||||||
required_limits: Limits::downlevel_defaults(),
|
required_limits: Limits::downlevel_defaults(),
|
||||||
|
memory_hints: MemoryHints::MemoryUsage,
|
||||||
},
|
},
|
||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
|
|
|
@ -239,6 +239,7 @@ impl Cache {
|
||||||
depth_stencil: depth_stencil.clone(),
|
depth_stencil: depth_stencil.clone(),
|
||||||
multisample,
|
multisample,
|
||||||
multiview: None,
|
multiview: None,
|
||||||
|
cache: None,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
cache.push((format, multisample, depth_stencil, pipeline.clone()));
|
cache.push((format, multisample, depth_stencil, pipeline.clone()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue