gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 549 forks source link

Distinguish STORAGE from STORAGE_READ_WRITE image feature #3559

Closed Wumpf closed 3 years ago

Wumpf commented 3 years ago

Implemented for Vulkan/DX12/DX11. In Vulkan, storage image implies simultaneous read/write access. Other APIs in contrast may allow STORAGE writeonly while disallowing reading.

Related to https://github.com/gfx-rs/wgpu/pull/1109 - native extension for for read+write storage textures in wgpu native; following comments on the PR I'm redoing it and would need to add this to the hal api.

PR checklist:

bors[bot] commented 3 years ago

Build succeeded: