mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 09:09:19 +01:00
[naga spv-out] Replace match with equivalent !=.
This commit is contained in:
1 parent
98c4d6f42e
commit
04032905ef
1 file changed
+1
-4
@@ -200,10 +200,7 @@ impl<'w> BlockContext<'w> {
|
||||
fn is_intermediate(&self, expr_handle: Handle<crate::Expression>) -> bool {
|
||||
match self.ir_function.expressions[expr_handle] {
|
||||
crate::Expression::GlobalVariable(handle) => {
|
||||
match self.ir_module.global_variables[handle].space {
|
||||
crate::AddressSpace::Handle => false,
|
||||
_ => true,
|
||||
}
|
||||
self.ir_module.global_variables[handle].space != crate::AddressSpace::Handle
|
||||
}
|
||||
crate::Expression::LocalVariable(_) => true,
|
||||
crate::Expression::FunctionArgument(index) => {
|
||||
|
||||
Reference in new issue
Block a user