diff options
author | 2025-03-09 01:38:34 +0100 | |
---|---|---|
committer | 2025-03-09 01:38:34 +0100 | |
commit | fb2544021a40d029a99cadda7cf59acf5e7dc455 (patch) | |
tree | 3760dd8a8c1d3bafaadefd3e07c7c70820e8d582 /wgpu/src/image/atlas.rs | |
parent | 86e8494bfa460bdbf506695f8f4b4f01a9cf5088 (diff) | |
download | iced-fb2544021a40d029a99cadda7cf59acf5e7dc455.tar.gz iced-fb2544021a40d029a99cadda7cf59acf5e7dc455.tar.bz2 iced-fb2544021a40d029a99cadda7cf59acf5e7dc455.zip |
Update `wgpu` to `24` and use `cryoglyph` fork
Co-authored-by: Winfried Baumann <codewing@web.de>
Diffstat (limited to 'wgpu/src/image/atlas.rs')
-rw-r--r-- | wgpu/src/image/atlas.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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 { |