spv-out: Force wrapping of push constant structs

This commit is contained in:
Dzmitry Malyshau committed 2021-12-16 16:21:06 -05:00
1 parent 7bb886bf36
commit 6df9656e96
2 files changed
+49 -43

No files matched your search

+3 -1
View File
@@ -66,7 +66,9 @@ impl crate::StorageClass {
// See `back::spv::GlobalVariable::access_id` for details.
pub fn global_needs_wrapper(ir_module: &crate::Module, var: &crate::GlobalVariable) -> bool {
match var.class {
crate::StorageClass::Uniform | crate::StorageClass::Storage { .. } => {}
crate::StorageClass::Uniform
| crate::StorageClass::Storage { .. }
| crate::StorageClass::PushConstant => {}
_ => return false,
};
match ir_module.types[var.ty].inner {