Refactor watch variables to support complex types including structs

This commit is contained in:
baldurk committed 2022-03-07 18:45:57 +00:00
1 parent b0db52c80b
commit 7b4f535663
3 files changed
+1081 -615

No files matched your search

+9
View File
@@ -1599,6 +1599,15 @@ QString TypeString(const ShaderVariable &v)
QString typeStr = ToQStr(v.type);
if(v.type == VarType::ReadOnlyResource)
typeStr = lit("Resource");
else if(v.type == VarType::ReadWriteResource)
typeStr = lit("RW Resource");
else if(v.type == VarType::Sampler)
typeStr = lit("Sampler");
else if(v.type == VarType::ConstantBlock)
typeStr = lit("Constant Block");
if(v.displayAsHex)
{
if(v.type == VarType::ULong)