Refactor watch variables to support complex types including structs

This commit is contained in:
baldurk
2022-03-07 18:45:57 +00:00
parent b0db52c80b
commit 7b4f535663
3 changed files with 1081 additions and 615 deletions
+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)