mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-25 00:03:29 +00:00
[naga spv-out] Replace match
with equivalent !=
.
This commit is contained in:
parent
98c4d6f42e
commit
04032905ef
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user