Fix shader debugging display of high-level boolean variables

This commit is contained in:
Steve Karolewics
2022-02-04 20:04:19 +00:00
committed by Baldur Karlsson
parent 6ab4c1ad74
commit c6c93efd22
+3 -1
View File
@@ -4101,7 +4101,9 @@ RDTreeWidgetItem *ShaderViewer::makeSourceVariableNode(const SourceVariableMappi
case VarType::Float: value += Formatter::Format(reg->value.f32v[r.component]); break;
case VarType::Double: value += Formatter::Format(reg->value.f64v[r.component]); break;
case VarType::Half: value += Formatter::Format(reg->value.f16v[r.component]); break;
case VarType::Bool: Formatter::Format(reg->value.u32v[r.component] ? true : false);
case VarType::Bool:
value += Formatter::Format(reg->value.u32v[r.component] ? true : false);
break;
case VarType::ULong: value += Formatter::Format(reg->value.u64v[r.component]); break;
case VarType::UInt: value += Formatter::Format(reg->value.u32v[r.component]); break;
case VarType::UShort: value += Formatter::Format(reg->value.u16v[r.component]); break;