Remove register/HLSL handling from shader viewer, work agnostically

* The shader viewer shouldn't handle specifics of D3D bytecode, instead it now
  works generally with whatever the debug and source variables are.
* VarType::Unknown is used for D3D registers which are typeless.
This commit is contained in:
baldurk
2020-02-06 17:58:41 +00:00
parent fdb6617cb1
commit 410f9d86bd
6 changed files with 577 additions and 537 deletions
+2
View File
@@ -1511,6 +1511,8 @@ QString TypeString(const ShaderVariable &v)
typeStr = lit("xbyte");
}
if(v.type == VarType::Unknown)
return lit("Typeless");
if(v.rows == 1 && v.columns == 1)
return typeStr;
if(v.rows == 1)