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

@ -104,7 +104,7 @@ Shader version: 500
0:8 'flattenTemp' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1})
0:8 Function Call: @main( ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1})
0:8 move second child to first child ( temp 4-component vector of float)
0:? '@entryPointOutput_Position' ( out 4-component vector of float Position)
0:? '@entryPointOutput.Position' ( out 4-component vector of float Position)
0:8 Position: direct index for structure ( temp 4-component vector of float)
0:8 'flattenTemp' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1})
0:8 Constant:
@ -112,7 +112,7 @@ Shader version: 500
0:? Sequence
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 0 (const int)
0:8 direct index ( temp float)
@ -124,7 +124,7 @@ Shader version: 500
0:8 0 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 1 (const int)
0:8 direct index ( temp float)
@ -136,7 +136,7 @@ Shader version: 500
0:8 1 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 2 (const int)
0:8 direct index ( temp float)
@ -148,7 +148,7 @@ Shader version: 500
0:8 2 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 3 (const int)
0:8 direct index ( temp float)
@ -161,7 +161,7 @@ Shader version: 500
0:? Sequence
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 4 (const int)
0:8 direct index ( temp float)
@ -173,7 +173,7 @@ Shader version: 500
0:8 0 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 5 (const int)
0:8 direct index ( temp float)
@ -185,7 +185,7 @@ Shader version: 500
0:8 1 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 6 (const int)
0:8 direct index ( temp float)
@ -197,7 +197,7 @@ Shader version: 500
0:8 2 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 7 (const int)
0:8 direct index ( temp float)
@ -208,8 +208,8 @@ Shader version: 500
0:8 Constant:
0:8 3 (const int)
0:? Linker Objects
0:? '@entryPointOutput_Position' ( out 4-component vector of float Position)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.Position' ( out 4-component vector of float Position)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
Linked vertex stage:
@ -320,7 +320,7 @@ Shader version: 500
0:8 'flattenTemp' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1})
0:8 Function Call: @main( ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1})
0:8 move second child to first child ( temp 4-component vector of float)
0:? '@entryPointOutput_Position' ( out 4-component vector of float Position)
0:? '@entryPointOutput.Position' ( out 4-component vector of float Position)
0:8 Position: direct index for structure ( temp 4-component vector of float)
0:8 'flattenTemp' ( temp structure{ temp 4-component vector of float Position, temp 4-component vector of float clip0, temp 4-component vector of float clip1})
0:8 Constant:
@ -328,7 +328,7 @@ Shader version: 500
0:? Sequence
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 0 (const int)
0:8 direct index ( temp float)
@ -340,7 +340,7 @@ Shader version: 500
0:8 0 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 1 (const int)
0:8 direct index ( temp float)
@ -352,7 +352,7 @@ Shader version: 500
0:8 1 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 2 (const int)
0:8 direct index ( temp float)
@ -364,7 +364,7 @@ Shader version: 500
0:8 2 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 3 (const int)
0:8 direct index ( temp float)
@ -377,7 +377,7 @@ Shader version: 500
0:? Sequence
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 4 (const int)
0:8 direct index ( temp float)
@ -389,7 +389,7 @@ Shader version: 500
0:8 0 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 5 (const int)
0:8 direct index ( temp float)
@ -401,7 +401,7 @@ Shader version: 500
0:8 1 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 6 (const int)
0:8 direct index ( temp float)
@ -413,7 +413,7 @@ Shader version: 500
0:8 2 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 7 (const int)
0:8 direct index ( temp float)
@ -424,8 +424,8 @@ Shader version: 500
0:8 Constant:
0:8 3 (const int)
0:? Linker Objects
0:? '@entryPointOutput_Position' ( out 4-component vector of float Position)
0:? '@entryPointOutput_clip1' ( out 8-element array of float ClipDistance)
0:? '@entryPointOutput.Position' ( out 4-component vector of float Position)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
// Module Version 10000
// Generated by (magic number): 80001
@ -445,10 +445,10 @@ Shader version: 500
Name 10 "@main("
Name 13 "Output"
Name 46 "flattenTemp"
Name 49 "@entryPointOutput_Position"
Name 55 "@entryPointOutput_clip1"
Decorate 49(@entryPointOutput_Position) BuiltIn Position
Decorate 55(@entryPointOutput_clip1) BuiltIn ClipDistance
Name 49 "@entryPointOutput.Position"
Name 55 "@entryPointOutput.clip1"
Decorate 49(@entryPointOutput.Position) BuiltIn Position
Decorate 55(@entryPointOutput.clip1) BuiltIn ClipDistance
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@ -477,11 +477,11 @@ Shader version: 500
39: 6(float) Constant 1086324736
41: 6(float) Constant 1088421888
48: TypePointer Output 7(fvec4)
49(@entryPointOutput_Position): 48(ptr) Variable Output
49(@entryPointOutput.Position): 48(ptr) Variable Output
52: 21(int) Constant 8
53: TypeArray 6(float) 52
54: TypePointer Output 53
55(@entryPointOutput_clip1): 54(ptr) Variable Output
55(@entryPointOutput.clip1): 54(ptr) Variable Output
58: TypePointer Output 6(float)
66: 14(int) Constant 3
70: 14(int) Constant 4
@ -495,38 +495,38 @@ Shader version: 500
Store 46(flattenTemp) 47
50: 18(ptr) AccessChain 46(flattenTemp) 15
51: 7(fvec4) Load 50
Store 49(@entryPointOutput_Position) 51
Store 49(@entryPointOutput.Position) 51
56: 23(ptr) AccessChain 46(flattenTemp) 20 22
57: 6(float) Load 56
59: 58(ptr) AccessChain 55(@entryPointOutput_clip1) 15
59: 58(ptr) AccessChain 55(@entryPointOutput.clip1) 15
Store 59 57
60: 23(ptr) AccessChain 46(flattenTemp) 20 26
61: 6(float) Load 60
62: 58(ptr) AccessChain 55(@entryPointOutput_clip1) 20
62: 58(ptr) AccessChain 55(@entryPointOutput.clip1) 20
Store 62 61
63: 23(ptr) AccessChain 46(flattenTemp) 20 29
64: 6(float) Load 63
65: 58(ptr) AccessChain 55(@entryPointOutput_clip1) 34
65: 58(ptr) AccessChain 55(@entryPointOutput.clip1) 34
Store 65 64
67: 23(ptr) AccessChain 46(flattenTemp) 20 32
68: 6(float) Load 67
69: 58(ptr) AccessChain 55(@entryPointOutput_clip1) 66
69: 58(ptr) AccessChain 55(@entryPointOutput.clip1) 66
Store 69 68
71: 23(ptr) AccessChain 46(flattenTemp) 34 22
72: 6(float) Load 71
73: 58(ptr) AccessChain 55(@entryPointOutput_clip1) 70
73: 58(ptr) AccessChain 55(@entryPointOutput.clip1) 70
Store 73 72
75: 23(ptr) AccessChain 46(flattenTemp) 34 26
76: 6(float) Load 75
77: 58(ptr) AccessChain 55(@entryPointOutput_clip1) 74
77: 58(ptr) AccessChain 55(@entryPointOutput.clip1) 74
Store 77 76
79: 23(ptr) AccessChain 46(flattenTemp) 34 29
80: 6(float) Load 79
81: 58(ptr) AccessChain 55(@entryPointOutput_clip1) 78
81: 58(ptr) AccessChain 55(@entryPointOutput.clip1) 78
Store 81 80
83: 23(ptr) AccessChain 46(flattenTemp) 34 32
84: 6(float) Load 83
85: 58(ptr) AccessChain 55(@entryPointOutput_clip1) 82
85: 58(ptr) AccessChain 55(@entryPointOutput.clip1) 82
Store 85 84
Return
FunctionEnd