mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 00:11:11 +01:00
[spv-out] generate LogicalNot for bools
This commit is contained in:
1 parent
e8c5242cc7
commit
f77abdb156
1 file changed
+4
-1
@@ -1575,7 +1575,10 @@ impl Writer {
|
||||
return Err(Error::FeatureNotImplemented("negation"));
|
||||
}
|
||||
},
|
||||
crate::UnaryOperator::Not => spirv::Op::Not,
|
||||
crate::UnaryOperator::Not => match expr_ty_inner.scalar_kind() {
|
||||
Some(crate::ScalarKind::Bool) => spirv::Op::LogicalNot,
|
||||
_ => spirv::Op::Not,
|
||||
},
|
||||
};
|
||||
|
||||
block
|
||||
|
||||
Reference in new issue
Block a user