HLSL: Move debug naming to a simpler, more consistent, scheme.

This will help in expanding flattening and reducing splitting.
This commit is contained in:
John Kessenich
2017-08-09 14:29:29 -06:00
parent 3322dd8f99
commit e516d4335f
138 changed files with 2276 additions and 2278 deletions

View File

@@ -41,20 +41,20 @@ gl_FragCoord origin is upper left
0:4 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:4 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:4 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:4 Color: direct index for structure ( temp 4-component vector of float)
0:4 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:4 Constant:
0:4 0 (const int)
0:4 move second child to first child ( temp float)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:? '@entryPointOutput.Depth' ( out float FragDepth)
0:4 Depth: direct index for structure ( temp float)
0:4 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:4 Constant:
0:4 1 (const int)
0:? Linker Objects
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:
@@ -102,20 +102,20 @@ gl_FragCoord origin is upper left
0:4 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:4 Function Call: @main( ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:4 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:4 Color: direct index for structure ( temp 4-component vector of float)
0:4 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:4 Constant:
0:4 0 (const int)
0:4 move second child to first child ( temp float)
0:? '@entryPointOutput_Depth' ( out float FragDepth)
0:? '@entryPointOutput.Depth' ( out float FragDepth)
0:4 Depth: direct index for structure ( temp float)
0:4 'flattenTemp' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
0:4 Constant:
0:4 1 (const int)
0:? Linker Objects
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
@@ -135,10 +135,10 @@ gl_FragCoord origin is upper left
Name 14 "thisLineIs"
Name 17 "psout"
Name 32 "flattenTemp"
Name 35 "Color"
Name 39 "@entryPointOutput_Depth"
Decorate 35(Color) Location 0
Decorate 39(@entryPointOutput_Depth) BuiltIn FragDepth
Name 35 "@entryPointOutput.Color"
Name 39 "@entryPointOutput.Depth"
Decorate 35(@entryPointOutput.Color) Location 0
Decorate 39(@entryPointOutput.Depth) BuiltIn FragDepth
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@@ -156,9 +156,9 @@ gl_FragCoord origin is upper left
26: 12(int) Constant 1
27: TypePointer Function 6(float)
34: TypePointer Output 7(fvec4)
35(Color): 34(ptr) Variable Output
35(@entryPointOutput.Color): 34(ptr) Variable Output
38: TypePointer Output 6(float)
39(@entryPointOutput_Depth): 38(ptr) Variable Output
39(@entryPointOutput.Depth): 38(ptr) Variable Output
4(main): 2 Function None 3
5: Label
32(flattenTemp): 16(ptr) Variable Function
@@ -166,10 +166,10 @@ gl_FragCoord origin is upper left
Store 32(flattenTemp) 33
36: 24(ptr) AccessChain 32(flattenTemp) 18
37: 7(fvec4) Load 36
Store 35(Color) 37
Store 35(@entryPointOutput.Color) 37
40: 27(ptr) AccessChain 32(flattenTemp) 26
41: 6(float) Load 40
Store 39(@entryPointOutput_Depth) 41
Store 39(@entryPointOutput.Depth) 41
Return
FunctionEnd
10(@main():8(PS_OUTPUT) Function None 9