mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
hal/gles: don't expose VERTEX_STORAGE if there is no storage
This commit is contained in:
@@ -279,6 +279,7 @@ impl super::Adapter {
|
||||
downlevel_flags.set(
|
||||
wgt::DownlevelFlags::VERTEX_STORAGE,
|
||||
max_storage_block_size != 0
|
||||
&& max_storage_buffers_per_shader_stage != 0
|
||||
&& (vertex_shader_storage_blocks != 0 || vertex_ssbo_false_zero),
|
||||
);
|
||||
downlevel_flags.set(wgt::DownlevelFlags::FRAGMENT_STORAGE, supports_storage);
|
||||
|
||||
Reference in New Issue
Block a user