pub fn supports_storage_buffers(device: &Device) -> boolExpand description
Whether device can read a storage buffer from a shader.
WebGL2 cannot: it has no storage buffers at all, and a bind-group layout
naming one is rejected outright. Such a device reports a limit of zero,
which is the only signal available — [wgpu::Device] exposes its limits and
features but not the downlevel capabilities that would say so directly.
A device that can bind storage buffers reports a non-zero limit, so this is what decides between the built-in shader’s buffer and texel array paths.