mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[spv-out] generate LogicalNot for bools
This commit is contained in:
@@ -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