mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
spv-out: Force wrapping of push constant structs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user