mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
Fix handling of spec constant operations returning bool in shader debug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user