mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 13:45:55 +00:00
Refactor watch variables to support complex types including structs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user