Fix handling of spec constant operations returning bool in shader debug

This commit is contained in:
baldurk
2023-01-12 15:13:15 +00:00
parent f78b585018
commit d2c4312078
2 changed files with 6 additions and 1 deletions
@@ -47,6 +47,11 @@ Scalar::Scalar(Iter it)
width = decoded.width;
signedness = false;
}
else if(type == Op::TypeBool)
{
width = 32;
signedness = false;
}
else
{
width = 0;
@@ -112,7 +112,7 @@ Scalar scalar(VarType t);
}
SCALAR_TYPE(void, Op::TypeVoid, 0, false);
SCALAR_TYPE(bool, Op::TypeBool, 0, false);
SCALAR_TYPE(bool, Op::TypeBool, 32, false);
SCALAR_TYPE(uint8_t, Op::TypeInt, 8, false);
SCALAR_TYPE(uint16_t, Op::TypeInt, 16, false);
SCALAR_TYPE(uint32_t, Op::TypeInt, 32, false);