Fix handling of specialization Op::LogicalNot Closes #3046

This commit is contained in:
Jake Turner
2023-09-04 16:21:08 +01:00
parent 0b669b61e9
commit df3b17a265
@@ -1506,7 +1506,7 @@ ShaderVariable Processor::EvaluateConstant(Id constID, const rdcarray<SpecConsta
{
case Op::SNegate: a.s64v[0] = -a.s64v[0]; break;
case Op::Not: a.u64v[0] = ~a.u64v[0]; break;
case Op::LogicalNot: a.u64v[0] = a.u64v[0] ? 1 : 0; break;
case Op::LogicalNot: a.u64v[0] = a.u64v[0] ? 0 : 1; break;
case Op::IAdd:
if(signedness)
a.s64v[0] += b.s64v[0];