HLSL: Move debug naming to a simpler, more consistent, scheme.
This will help in expanding flattening and reducing splitting.
This commit is contained in:
@@ -344,13 +344,13 @@ gl_FragCoord origin is upper left
|
||||
0:34 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 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:34 Color: direct index for structure ( temp 4-component vector of float)
|
||||
0:34 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 Constant:
|
||||
0:34 0 (const int)
|
||||
0:34 move second child to first child ( temp float)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput.Depth' ( out float FragDepth)
|
||||
0:34 Depth: direct index for structure ( temp float)
|
||||
0:34 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 Constant:
|
||||
@@ -372,8 +372,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTexcdi4' ( uniform itextureCube)
|
||||
0:? 'g_tTexcdu4' ( uniform utextureCube)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform float c1, uniform 2-component vector of float c2, uniform 3-component vector of float c3, uniform 4-component vector of float c4})
|
||||
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:
|
||||
@@ -724,13 +724,13 @@ gl_FragCoord origin is upper left
|
||||
0:34 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 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:34 Color: direct index for structure ( temp 4-component vector of float)
|
||||
0:34 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 Constant:
|
||||
0:34 0 (const int)
|
||||
0:34 move second child to first child ( temp float)
|
||||
0:? '@entryPointOutput_Depth' ( out float FragDepth)
|
||||
0:? '@entryPointOutput.Depth' ( out float FragDepth)
|
||||
0:34 Depth: direct index for structure ( temp float)
|
||||
0:34 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
0:34 Constant:
|
||||
@@ -752,8 +752,8 @@ gl_FragCoord origin is upper left
|
||||
0:? 'g_tTexcdi4' ( uniform itextureCube)
|
||||
0:? 'g_tTexcdu4' ( uniform utextureCube)
|
||||
0:? 'anon@0' (layout( row_major std140) uniform block{ uniform float c1, uniform 2-component vector of float c2, uniform 3-component vector of float c3, uniform 4-component vector of float c4})
|
||||
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
|
||||
@@ -810,8 +810,8 @@ gl_FragCoord origin is upper left
|
||||
Name 218 "txval72"
|
||||
Name 226 "psout"
|
||||
Name 235 "flattenTemp"
|
||||
Name 238 "Color"
|
||||
Name 242 "@entryPointOutput_Depth"
|
||||
Name 238 "@entryPointOutput.Color"
|
||||
Name 242 "@entryPointOutput.Depth"
|
||||
Name 245 "g_sSamp2d"
|
||||
Name 248 "g_tTex1df4a"
|
||||
Name 249 "g_tTex1df4"
|
||||
@@ -834,8 +834,8 @@ gl_FragCoord origin is upper left
|
||||
Decorate 131(g_tTexcdf4) DescriptorSet 0
|
||||
Decorate 143(g_tTexcdi4) DescriptorSet 0
|
||||
Decorate 154(g_tTexcdu4) DescriptorSet 0
|
||||
Decorate 238(Color) Location 0
|
||||
Decorate 242(@entryPointOutput_Depth) BuiltIn FragDepth
|
||||
Decorate 238(@entryPointOutput.Color) Location 0
|
||||
Decorate 242(@entryPointOutput.Depth) BuiltIn FragDepth
|
||||
Decorate 245(g_sSamp2d) DescriptorSet 0
|
||||
Decorate 248(g_tTex1df4a) DescriptorSet 0
|
||||
Decorate 248(g_tTex1df4a) Binding 1
|
||||
@@ -902,9 +902,9 @@ gl_FragCoord origin is upper left
|
||||
228: 7(fvec4) ConstantComposite 227 227 227 227
|
||||
230: TypePointer Function 6(float)
|
||||
237: TypePointer Output 7(fvec4)
|
||||
238(Color): 237(ptr) Variable Output
|
||||
238(@entryPointOutput.Color): 237(ptr) Variable Output
|
||||
241: TypePointer Output 6(float)
|
||||
242(@entryPointOutput_Depth): 241(ptr) Variable Output
|
||||
242(@entryPointOutput.Depth): 241(ptr) Variable Output
|
||||
245(g_sSamp2d): 19(ptr) Variable UniformConstant
|
||||
246: TypeImage 6(float) 1D sampled format:Unknown
|
||||
247: TypePointer UniformConstant 246
|
||||
@@ -932,10 +932,10 @@ gl_FragCoord origin is upper left
|
||||
Store 235(flattenTemp) 236
|
||||
239: 12(ptr) AccessChain 235(flattenTemp) 34
|
||||
240: 7(fvec4) Load 239
|
||||
Store 238(Color) 240
|
||||
Store 238(@entryPointOutput.Color) 240
|
||||
243: 230(ptr) AccessChain 235(flattenTemp) 30
|
||||
244: 6(float) Load 243
|
||||
Store 242(@entryPointOutput_Depth) 244
|
||||
Store 242(@entryPointOutput.Depth) 244
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
|
||||
Reference in New Issue
Block a user