mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
[spv-out] support function arguments as pointers
This commit is contained in:
1 parent
34b830da17
commit
77a64da189
1 file changed
+4
@@ -2298,6 +2298,10 @@ impl Writer {
|
||||
let local_var = &function.variables[&variable];
|
||||
break (local_var.id, spirv::StorageClass::Function);
|
||||
}
|
||||
crate::Expression::FunctionArgument(index) => {
|
||||
let id = function.parameters[index as usize].result_id.unwrap();
|
||||
break (id, spirv::StorageClass::Function);
|
||||
}
|
||||
ref other => unimplemented!("Unexpected pointer expression {:?}", other),
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user