diff options
Diffstat (limited to 'client/src/render/scene/textures.rs')
-rw-r--r-- | client/src/render/scene/textures.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/render/scene/textures.rs b/client/src/render/scene/textures.rs index 4f2b01c..462cb53 100644 --- a/client/src/render/scene/textures.rs +++ b/client/src/render/scene/textures.rs @@ -27,8 +27,8 @@ use std::{ use wgpu::{ AddressMode, BindGroup, BindGroupDescriptor, BindGroupEntry, BindGroupLayout, BindingResource, Color, ColorTargetState, ColorWrites, CommandEncoderDescriptor, Device, Extent3d, FilterMode, - ImageDataLayout, LoadOp, Operations, Queue, RenderPassColorAttachment, RenderPassDescriptor, - RenderPipeline, SamplerDescriptor, StoreOp, Texture, TextureAspect, TextureDescriptor, + LoadOp, Operations, Queue, RenderPassColorAttachment, RenderPassDescriptor, RenderPipeline, + SamplerDescriptor, StoreOp, TexelCopyBufferLayout, Texture, TextureAspect, TextureDescriptor, TextureDimension, TextureFormat, TextureUsages, TextureViewDescriptor, include_wgsl, }; @@ -193,7 +193,7 @@ fn create_texture( }); let bind_group = device.create_bind_group(&BindGroupDescriptor { label: None, - layout: &bgl, + layout: bgl, entries: &[ BindGroupEntry { binding: 0, @@ -246,7 +246,7 @@ fn create_texture( queue.write_texture( texture.as_image_copy(), data, - ImageDataLayout { + TexelCopyBufferLayout { bytes_per_row: Some(width * 4), rows_per_image: None, offset: 0, @@ -287,7 +287,7 @@ fn create_texture( occlusion_query_set: None, }); - rpass.set_pipeline(&mip_pipeline); + rpass.set_pipeline(mip_pipeline); rpass.set_bind_group(0, &mip_bind_group, &[]); rpass.draw(0..3, 0..1); } |