mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +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 {
|
fn is_intermediate(&self, expr_handle: Handle<crate::Expression>) -> bool {
|
||||||
match self.ir_function.expressions[expr_handle] {
|
match self.ir_function.expressions[expr_handle] {
|
||||||
crate::Expression::GlobalVariable(handle) => {
|
crate::Expression::GlobalVariable(handle) => {
|
||||||
match self.ir_module.global_variables[handle].space {
|
self.ir_module.global_variables[handle].space != crate::AddressSpace::Handle
|
||||||
crate::AddressSpace::Handle => false,
|
|
||||||
_ => true,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
crate::Expression::LocalVariable(_) => true,
|
crate::Expression::LocalVariable(_) => true,
|
||||||
crate::Expression::FunctionArgument(index) => {
|
crate::Expression::FunctionArgument(index) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user