mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 23:11:01 +01:00
hal/gles: don't expose VERTEX_STORAGE if there is no storage
This commit is contained in:
1 parent
048aada6df
commit
506c0f67f2
1 file changed
+1
@@ -278,6 +278,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