Skip to content

Commit 5552edb

Browse files
committedFeb 16, 2025·
Update kas-wgpu
1 parent d441629 commit 5552edb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
 

‎crates/kas-wgpu/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ path = "../kas-core"
4747
version = "0.7.0"
4848

4949
[dependencies.wgpu]
50-
version = "23.0.1"
50+
version = "24.0.1"
5151
default-features = false
5252
features = ["spirv"]
5353

‎crates/kas-wgpu/src/draw/draw_pipe.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl<C: CustomPipe> DrawPipe<C> {
3232
mut custom: CB,
3333
options: &Options,
3434
) -> Result<Self, Error> {
35-
let instance = wgpu::Instance::new(wgpu::InstanceDescriptor {
35+
let instance = wgpu::Instance::new(&wgpu::InstanceDescriptor {
3636
backends: options.backend(),
3737
..Default::default()
3838
});

‎crates/kas-wgpu/src/draw/images.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl Image {
3535
assert!(!data.is_empty());
3636
assert_eq!(data.len(), 4 * usize::conv(size.0) * usize::conv(size.1));
3737
queue.write_texture(
38-
wgpu::ImageCopyTexture {
38+
wgpu::TexelCopyTextureInfo {
3939
texture: atlas_pipe.get_texture(self.atlas),
4040
mip_level: 0,
4141
origin: wgpu::Origin3d {
@@ -46,7 +46,7 @@ impl Image {
4646
aspect: wgpu::TextureAspect::All,
4747
},
4848
data,
49-
wgpu::ImageDataLayout {
49+
wgpu::TexelCopyBufferLayout {
5050
offset: 0,
5151
bytes_per_row: Some(4 * size.0),
5252
rows_per_image: Some(size.1),

‎crates/kas-wgpu/src/draw/text_pipe.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl Pipeline {
148148
}
149149
for (atlas, origin, size, data) in self.prepare.drain(..) {
150150
queue.write_texture(
151-
wgpu::ImageCopyTexture {
151+
wgpu::TexelCopyTextureInfo {
152152
texture: self.atlas_pipe.get_texture(atlas),
153153
mip_level: 0,
154154
origin: wgpu::Origin3d {
@@ -159,7 +159,7 @@ impl Pipeline {
159159
aspect: wgpu::TextureAspect::All,
160160
},
161161
&data,
162-
wgpu::ImageDataLayout {
162+
wgpu::TexelCopyBufferLayout {
163163
offset: 0,
164164
bytes_per_row: Some(size.0),
165165
rows_per_image: Some(size.1),

0 commit comments

Comments
 (0)