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"
|
||||
|
||||
[dependencies]
|
||||
wgpu = { version = "0.20", default-features = false, features = ["wgsl"] }
|
||||
wgpu = { version = "22.0", default-features = false, features = ["wgsl"] }
|
||||
etagere = "0.2.10"
|
||||
cosmic-text = "0.12"
|
||||
lru = { version = "0.12.1", default-features = false }
|
||||
|
@ -16,5 +16,5 @@ rustc-hash = "2.0"
|
|||
|
||||
[dev-dependencies]
|
||||
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"
|
||||
|
|
|
@ -4,7 +4,7 @@ use glyphon::{
|
|||
};
|
||||
use wgpu::{
|
||||
CommandEncoderDescriptor, CompositeAlphaMode, DeviceDescriptor, Features, Instance,
|
||||
InstanceDescriptor, Limits, LoadOp, MultisampleState, Operations, PresentMode,
|
||||
InstanceDescriptor, Limits, LoadOp, MemoryHints, MultisampleState, Operations, PresentMode,
|
||||
RenderPassColorAttachment, RenderPassDescriptor, RequestAdapterOptions, SurfaceConfiguration,
|
||||
TextureFormat, TextureUsages, TextureViewDescriptor,
|
||||
};
|
||||
|
@ -47,6 +47,7 @@ async fn run() {
|
|||
label: None,
|
||||
required_features: Features::empty(),
|
||||
required_limits: Limits::downlevel_defaults(),
|
||||
memory_hints: MemoryHints::MemoryUsage,
|
||||
},
|
||||
None,
|
||||
)
|
||||
|
|
|
@ -239,6 +239,7 @@ impl Cache {
|
|||
depth_stencil: depth_stencil.clone(),
|
||||
multisample,
|
||||
multiview: None,
|
||||
cache: None,
|
||||
}));
|
||||
|
||||
cache.push((format, multisample, depth_stencil, pipeline.clone()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue