diff options
| author | 2021-08-25 16:19:00 +0700 | |
|---|---|---|
| committer | 2021-08-25 16:19:00 +0700 | |
| commit | 2d65621a3b680457e689b93c800e74f726ffc175 (patch) | |
| tree | 283aaa8245b8cb41d1f4a23709ba13bbe849d4a4 /wgpu/src/image | |
| parent | 8333b8f88ceaa53c361eb6726b2b7dac6cd2c402 (diff) | |
| parent | acc47a595300ff9bb9cae1e26c2d41135cde8ae8 (diff) | |
| download | iced-2d65621a3b680457e689b93c800e74f726ffc175.tar.gz iced-2d65621a3b680457e689b93c800e74f726ffc175.tar.bz2 iced-2d65621a3b680457e689b93c800e74f726ffc175.zip  | |
Merge pull request #1000 from PolyMeilex/wgpu-0.10
wgpu: Update to 0.10
Diffstat (limited to 'wgpu/src/image')
| -rw-r--r-- | wgpu/src/image/atlas.rs | 17 | 
1 files changed, 10 insertions, 7 deletions
diff --git a/wgpu/src/image/atlas.rs b/wgpu/src/image/atlas.rs index 4855fa4a..c1347e55 100644 --- a/wgpu/src/image/atlas.rs +++ b/wgpu/src/image/atlas.rs @@ -36,9 +36,9 @@ impl Atlas {              sample_count: 1,              dimension: wgpu::TextureDimension::D2,              format: wgpu::TextureFormat::Bgra8UnormSrgb, -            usage: wgpu::TextureUsage::COPY_DST -                | wgpu::TextureUsage::COPY_SRC -                | wgpu::TextureUsage::SAMPLED, +            usage: wgpu::TextureUsages::COPY_DST +                | wgpu::TextureUsages::COPY_SRC +                | wgpu::TextureUsages::TEXTURE_BINDING,          });          let texture_view = texture.create_view(&wgpu::TextureViewDescriptor { @@ -107,7 +107,7 @@ impl Atlas {              device.create_buffer_init(&wgpu::util::BufferInitDescriptor {                  label: Some("iced_wgpu::image staging buffer"),                  contents: &padded_data, -                usage: wgpu::BufferUsage::COPY_SRC, +                usage: wgpu::BufferUsages::COPY_SRC,              });          match &entry { @@ -316,6 +316,7 @@ impl Atlas {                      y,                      z: layer as u32,                  }, +                aspect: wgpu::TextureAspect::default(),              },              extent,          ); @@ -342,9 +343,9 @@ impl Atlas {              sample_count: 1,              dimension: wgpu::TextureDimension::D2,              format: wgpu::TextureFormat::Bgra8UnormSrgb, -            usage: wgpu::TextureUsage::COPY_DST -                | wgpu::TextureUsage::COPY_SRC -                | wgpu::TextureUsage::SAMPLED, +            usage: wgpu::TextureUsages::COPY_DST +                | wgpu::TextureUsages::COPY_SRC +                | wgpu::TextureUsages::TEXTURE_BINDING,          });          let amount_to_copy = self.layers.len() - amount; @@ -365,6 +366,7 @@ impl Atlas {                          y: 0,                          z: i as u32,                      }, +                    aspect: wgpu::TextureAspect::default(),                  },                  wgpu::ImageCopyTexture {                      texture: &new_texture, @@ -374,6 +376,7 @@ impl Atlas {                          y: 0,                          z: i as u32,                      }, +                    aspect: wgpu::TextureAspect::default(),                  },                  wgpu::Extent3d {                      width: SIZE,  | 
