Update wgpu to 24 and use cryoglyph fork

Co-authored-by: Winfried Baumann <codewing@web.de>
This commit is contained in:
Héctor Ramón Jiménez 2025-03-09 01:38:34 +01:00
parent 86e8494bfa
commit fb2544021a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
9 changed files with 126 additions and 90 deletions

View file

@ -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 {