From fb2544021a40d029a99cadda7cf59acf5e7dc455 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 9 Mar 2025 01:38:34 +0100 Subject: Update `wgpu` to `24` and use `cryoglyph` fork Co-authored-by: Winfried Baumann --- wgpu/src/image/atlas.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'wgpu/src/image/atlas.rs') diff --git a/wgpu/src/image/atlas.rs b/wgpu/src/image/atlas.rs index a1ec0d7b..3cede8b6 100644 --- a/wgpu/src/image/atlas.rs +++ b/wgpu/src/image/atlas.rs @@ -344,15 +344,15 @@ impl Atlas { }); encoder.copy_buffer_to_texture( - wgpu::ImageCopyBuffer { + wgpu::TexelCopyBufferInfo { buffer: &buffer, - layout: wgpu::ImageDataLayout { + layout: wgpu::TexelCopyBufferLayout { offset: offset as u64, bytes_per_row: Some(4 * image_width + padding), rows_per_image: Some(image_height), }, }, - wgpu::ImageCopyTexture { + wgpu::TexelCopyTextureInfo { texture: &self.texture, mip_level: 0, origin: wgpu::Origin3d { @@ -407,7 +407,7 @@ impl Atlas { } encoder.copy_texture_to_texture( - wgpu::ImageCopyTexture { + wgpu::TexelCopyTextureInfo { texture: &self.texture, mip_level: 0, origin: wgpu::Origin3d { @@ -417,7 +417,7 @@ impl Atlas { }, aspect: wgpu::TextureAspect::default(), }, - wgpu::ImageCopyTexture { + wgpu::TexelCopyTextureInfo { texture: &new_texture, mip_level: 0, origin: wgpu::Origin3d { -- cgit