gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.03k stars 873 forks source link

Make `VK_KHR_storage_buffer_storage_class` optional #3348

Open teoxoy opened 1 year ago

teoxoy commented 1 year ago

see https://github.com/gfx-rs/wgpu/issues/4427

cwfitzgerald commented 1 year ago

I don't understand how this is part of WebGPU - if we can't use the storage buffer class in shaders, we're downlevel no matter what as we always need to be able to write to buffers.

teoxoy commented 1 year ago

This extension provides a new SPIR-V StorageBuffer storage class. A Block-decorated object in this class is equivalent to a BufferBlock-decorated object in the Uniform storage class.

VK_KHR_storage_buffer_storage_class doesn't actually enable the use of storage buffers

See also https://github.com/kainino0x/gpuinfo-vulkan-query/issues/2 for more context (where I thought it was also needed).