summaryrefslogtreecommitdiffstats
path: root/wgpu
diff options
context:
space:
mode:
authorLibravatar David Huculak <davidhuculak5@gmail.com>2023-04-20 21:28:47 -0400
committerLibravatar David Huculak <davidhuculak5@gmail.com>2023-04-20 21:28:47 -0400
commit8122904ca46b73ceda54bd73bd68cf4138d22f1b (patch)
tree20756b590307a74e0c352ccbd50df3c134c63c3f /wgpu
parent99fc717b7c268abe49b1000d9f111b12562aafcf (diff)
downloadiced-8122904ca46b73ceda54bd73bd68cf4138d22f1b.tar.gz
iced-8122904ca46b73ceda54bd73bd68cf4138d22f1b.tar.bz2
iced-8122904ca46b73ceda54bd73bd68cf4138d22f1b.zip
wgpu 0.16
Diffstat (limited to 'wgpu')
-rw-r--r--wgpu/Cargo.toml4
-rw-r--r--wgpu/src/image/atlas.rs4
-rw-r--r--wgpu/src/window/compositor.rs2
3 files changed, 5 insertions, 5 deletions
diff --git a/wgpu/Cargo.toml b/wgpu/Cargo.toml
index 3478ef59..1ce07e0a 100644
--- a/wgpu/Cargo.toml
+++ b/wgpu/Cargo.toml
@@ -28,8 +28,8 @@ spirv = ["wgpu/spirv"]
webgl = ["wgpu/webgl"]
[dependencies]
-wgpu = "0.15"
-wgpu_glyph = "0.19"
+wgpu = "0.16"
+wgpu_glyph = "0.20"
glyph_brush = "0.7"
raw-window-handle = "0.5"
log = "0.4"
diff --git a/wgpu/src/image/atlas.rs b/wgpu/src/image/atlas.rs
index 82504147..1384949a 100644
--- a/wgpu/src/image/atlas.rs
+++ b/wgpu/src/image/atlas.rs
@@ -209,8 +209,8 @@ impl Atlas {
buffer,
layout: wgpu::ImageDataLayout {
offset: offset as u64,
- bytes_per_row: NonZeroU32::new(4 * image_width + padding),
- rows_per_image: NonZeroU32::new(image_height),
+ bytes_per_row: Some(4 * image_width + padding),
+ rows_per_image: Some(image_height),
},
},
wgpu::ImageCopyTexture {
diff --git a/wgpu/src/window/compositor.rs b/wgpu/src/window/compositor.rs
index d4a59471..8969ad6c 100644
--- a/wgpu/src/window/compositor.rs
+++ b/wgpu/src/window/compositor.rs
@@ -71,7 +71,7 @@ impl<Theme> Compositor<Theme> {
capabilities
.formats
.iter()
- .filter(|format| format.describe().srgb)
+ .filter(|format| format.is_srgb())
.copied()
.next()
.or_else(|| {