mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
make displayAsHex a real member of ShaderVariable, for use in qrenderdoc
This commit is contained in:
@@ -38,7 +38,7 @@ struct ShaderVariable
|
||||
{
|
||||
name = "";
|
||||
rows = columns = 0;
|
||||
isStruct = false;
|
||||
displayAsHex = isStruct = false;
|
||||
type = eVar_Float;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
@@ -48,7 +48,7 @@ struct ShaderVariable
|
||||
name = n;
|
||||
rows = 1;
|
||||
columns = 4;
|
||||
isStruct = false;
|
||||
displayAsHex = isStruct = false;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
type = eVar_Float;
|
||||
@@ -62,7 +62,7 @@ struct ShaderVariable
|
||||
name = n;
|
||||
rows = 1;
|
||||
columns = 4;
|
||||
isStruct = false;
|
||||
displayAsHex = isStruct = false;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
type = eVar_Int;
|
||||
@@ -76,7 +76,7 @@ struct ShaderVariable
|
||||
name = n;
|
||||
rows = 1;
|
||||
columns = 4;
|
||||
isStruct = false;
|
||||
displayAsHex = isStruct = false;
|
||||
for(int i = 0; i < 16; i++)
|
||||
value.uv[i] = 0;
|
||||
type = eVar_UInt;
|
||||
@@ -91,6 +91,8 @@ struct ShaderVariable
|
||||
|
||||
VarType type;
|
||||
|
||||
bool32 displayAsHex;
|
||||
|
||||
union
|
||||
{
|
||||
struct
|
||||
|
||||
@@ -38,8 +38,7 @@ namespace renderdoc
|
||||
|
||||
public VarType type;
|
||||
|
||||
[CustomMarshalAs(CustomUnmanagedType.Skip)]
|
||||
public bool displayAsHex = false;
|
||||
public bool displayAsHex;
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct ValueUnion
|
||||
|
||||
Reference in New Issue
Block a user