HLSL: Move debug naming to a simpler, more consistent, scheme.
This will help in expanding flattening and reducing splitting.
This commit is contained in:
@@ -152,13 +152,13 @@ gl_FragCoord origin is upper left
|
||||
0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:28 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:28 move second child to first child ( temp 4-component vector of float)
|
||||
0:? 'Color' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
|
||||
0:28 Color: direct index for structure ( temp 4-component vector of float)
|
||||
0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:28 Constant:
|
||||
0:28 0 (const int)
|
||||
0:28 move second child to first child ( temp float)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput.Depth' ( out float FragDepth)
|
||||
0:28 Depth: direct index for structure ( temp float)
|
||||
0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:28 Constant:
|
||||
@@ -172,8 +172,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTex2dmsi4a' ( uniform itexture2DMSArray)
|
||||
0:? 'g_tTex2dmsu4a' ( uniform utexture2DMSArray)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4})
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:? 'Color' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
@@ -332,13 +332,13 @@ gl_FragCoord origin is upper left
|
||||
0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:28 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:28 move second child to first child ( temp 4-component vector of float)
|
||||
0:? 'Color' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
|
||||
0:28 Color: direct index for structure ( temp 4-component vector of float)
|
||||
0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:28 Constant:
|
||||
0:28 0 (const int)
|
||||
0:28 move second child to first child ( temp float)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput.Depth' ( out float FragDepth)
|
||||
0:28 Depth: direct index for structure ( temp float)
|
||||
0:28 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:28 Constant:
|
||||
@@ -352,8 +352,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTex2dmsi4a' ( uniform itexture2DMSArray)
|
||||
0:? 'g_tTex2dmsu4a' ( uniform utexture2DMSArray)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform int c1, uniform 2-component vector of int c2, uniform 3-component vector of int c3, uniform 4-component vector of int c4, uniform int o1, uniform 2-component vector of int o2, uniform 3-component vector of int o3, uniform 4-component vector of int o4})
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:? 'Color' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput.Color' (layout( location=0) out 4-component vector of float)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
@@ -390,8 +390,8 @@ gl_FragCoord origin is upper left
|
||||
Name 82 "g_tTex2dmsu4a"
|
||||
Name 106 "psout"
|
||||
Name 117 "flattenTemp"
|
||||
Name 120 "Color"
|
||||
Name 124 "@entryPointOutput_Depth"
|
||||
Name 120 "@entryPointOutput.Color"
|
||||
Name 124 "@entryPointOutput.Depth"
|
||||
Name 129 "g_sSamp"
|
||||
Decorate 14(g_tTex2dmsf4) DescriptorSet 0
|
||||
MemberDecorate 20($Global) 0 Offset 0
|
||||
@@ -409,8 +409,8 @@ gl_FragCoord origin is upper left
|
||||
Decorate 66(g_tTex2dmsf4a) DescriptorSet 0
|
||||
Decorate 75(g_tTex2dmsi4a) DescriptorSet 0
|
||||
Decorate 82(g_tTex2dmsu4a) DescriptorSet 0
|
||||
Decorate 120(Color) Location 0
|
||||
Decorate 124(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 120(@entryPointOutput.Color) Location 0
|
||||
Decorate 124(@entryPointOutput.Depth) BuiltIn FragDepth
|
||||
Decorate 129(g_sSamp) DescriptorSet 0
|
||||
Decorate 129(g_sSamp) Binding 0
|
||||
2: TypeVoid
|
||||
@@ -459,9 +459,9 @@ gl_FragCoord origin is upper left
|
||||
110: TypePointer Function 7(fvec4)
|
||||
112: TypePointer Function 6(float)
|
||||
119: TypePointer Output 7(fvec4)
|
||||
120(Color): 119(ptr) Variable Output
|
||||
120(@entryPointOutput.Color): 119(ptr) Variable Output
|
||||
123: TypePointer Output 6(float)
|
||||
124(@entryPointOutput_Depth): 123(ptr) Variable Output
|
||||
124(@entryPointOutput.Depth): 123(ptr) Variable Output
|
||||
127: TypeSampler
|
||||
128: TypePointer UniformConstant 127
|
||||
129(g_sSamp): 128(ptr) Variable UniformConstant
|
||||
@@ -472,10 +472,10 @@ gl_FragCoord origin is upper left
|
||||
Store 117(flattenTemp) 118
|
||||
121: 110(ptr) AccessChain 117(flattenTemp) 107
|
||||
122: 7(fvec4) Load 121
|
||||
Store 120(Color) 122
|
||||
Store 120(@entryPointOutput.Color) 122
|
||||
125: 112(ptr) AccessChain 117(flattenTemp) 23
|
||||
126: 6(float) Load 125
|
||||
Store 124(@entryPointOutput_Depth) 126
|
||||
Store 124(@entryPointOutput.Depth) 126
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user