Skip to content

Commit

Permalink
Add support for storage texture access modes ReadOnly and ReadWrite o…
Browse files Browse the repository at this point in the history
…n WebGPU backend (#5434)

* add support for all storage texture access modes

* update changelog

* fix typo
  • Loading branch information
JolifantoBambla authored Mar 26, 2024
1 parent e102e59 commit a9ccbc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ Bottom level categories:

- Allow user to select which MSL version to use via `--metal-version` with Naga CLI. By @pcleavelin in [#5392](https://github.com/gfx-rs/wgpu/pull/5392)

#### WebGPU

- Add support for storage texture access modes `ReadOnly` and `ReadWrite`. By @JolifantoBambla in [#5434](https://github.com/gfx-rs/wgpu/pull/5434)

### Bug Fixes

#### General
Expand Down
4 changes: 2 additions & 2 deletions wgpu/src/backend/webgpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1578,10 +1578,10 @@ impl crate::context::Context for ContextWebGpu {
webgpu_sys::GpuStorageTextureAccess::WriteOnly
}
wgt::StorageTextureAccess::ReadOnly => {
panic!("ReadOnly is not available")
webgpu_sys::GpuStorageTextureAccess::ReadOnly
}
wgt::StorageTextureAccess::ReadWrite => {
panic!("ReadWrite is not available")
webgpu_sys::GpuStorageTextureAccess::ReadWrite
}
};
let mut storage_texture = webgpu_sys::GpuStorageTextureBindingLayout::new(
Expand Down

0 comments on commit a9ccbc7

Please sign in to comment.