Update to wgpu 0.14

This commit is contained in:
grovesNL 2022-10-18 13:02:31 -02:30
parent 14c634c8aa
commit 36fd030ecf
2 changed files with 5 additions and 4 deletions

View file

@ -8,10 +8,10 @@ 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 = "0.13.1" wgpu = "0.14.0"
fontdue = { git = "https://github.com/mooman219/fontdue", rev = "828b4f4" } fontdue = { git = "https://github.com/mooman219/fontdue", rev = "828b4f4" }
etagere = "0.2.6" etagere = "0.2.6"
[dev-dependencies] [dev-dependencies]
winit = "0.26.1" winit = "0.27.0"
pollster = "0.2.5" pollster = "0.2.5"

View file

@ -7,8 +7,8 @@ use glyphon::{
Color, HasColor, Resolution, TextAtlas, TextOverflow, TextRenderer, Color, HasColor, Resolution, TextAtlas, TextOverflow, TextRenderer,
}; };
use wgpu::{ use wgpu::{
Backends, CommandEncoderDescriptor, DeviceDescriptor, Features, Instance, Limits, LoadOp, Backends, CommandEncoderDescriptor, CompositeAlphaMode, DeviceDescriptor, Features, Instance,
Operations, PresentMode, RenderPassColorAttachment, RenderPassDescriptor, Limits, LoadOp, Operations, PresentMode, RenderPassColorAttachment, RenderPassDescriptor,
RequestAdapterOptions, SurfaceConfiguration, TextureUsages, TextureViewDescriptor, RequestAdapterOptions, SurfaceConfiguration, TextureUsages, TextureViewDescriptor,
}; };
use winit::{ use winit::{
@ -64,6 +64,7 @@ async fn run() {
width: size.width, width: size.width,
height: size.height, height: size.height,
present_mode: PresentMode::Mailbox, present_mode: PresentMode::Mailbox,
alpha_mode: CompositeAlphaMode::Opaque,
}; };
surface.configure(&device, &config); surface.configure(&device, &config);