Update to wgpu 0.14
This commit is contained in:
parent
14c634c8aa
commit
36fd030ecf
2 changed files with 5 additions and 4 deletions
|
@ -8,10 +8,10 @@ repository = "https://github.com/grovesNL/glyphon"
|
|||
license = "MIT OR Apache-2.0 OR Zlib"
|
||||
|
||||
[dependencies]
|
||||
wgpu = "0.13.1"
|
||||
wgpu = "0.14.0"
|
||||
fontdue = { git = "https://github.com/mooman219/fontdue", rev = "828b4f4" }
|
||||
etagere = "0.2.6"
|
||||
|
||||
[dev-dependencies]
|
||||
winit = "0.26.1"
|
||||
winit = "0.27.0"
|
||||
pollster = "0.2.5"
|
||||
|
|
|
@ -7,8 +7,8 @@ use glyphon::{
|
|||
Color, HasColor, Resolution, TextAtlas, TextOverflow, TextRenderer,
|
||||
};
|
||||
use wgpu::{
|
||||
Backends, CommandEncoderDescriptor, DeviceDescriptor, Features, Instance, Limits, LoadOp,
|
||||
Operations, PresentMode, RenderPassColorAttachment, RenderPassDescriptor,
|
||||
Backends, CommandEncoderDescriptor, CompositeAlphaMode, DeviceDescriptor, Features, Instance,
|
||||
Limits, LoadOp, Operations, PresentMode, RenderPassColorAttachment, RenderPassDescriptor,
|
||||
RequestAdapterOptions, SurfaceConfiguration, TextureUsages, TextureViewDescriptor,
|
||||
};
|
||||
use winit::{
|
||||
|
@ -64,6 +64,7 @@ async fn run() {
|
|||
width: size.width,
|
||||
height: size.height,
|
||||
present_mode: PresentMode::Mailbox,
|
||||
alpha_mode: CompositeAlphaMode::Opaque,
|
||||
};
|
||||
surface.configure(&device, &config);
|
||||
|
||||
|
|
Loading…
Reference in a new issue