HLSL: Move debug naming to a simpler, more consistent, scheme.
This will help in expanding flattening and reducing splitting.
This commit is contained in:
parent
3322dd8f99
commit
e516d4335f
138 changed files with 2276 additions and 2278 deletions
|
|
@ -63,7 +63,7 @@ triangle order = none
|
|||
0:25 Constant:
|
||||
0:25 0 (const int)
|
||||
0:25 direct index ( patch in float TessLevelOuter)
|
||||
0:? 'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:? 'pcf_data.flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:25 Constant:
|
||||
0:25 0 (const int)
|
||||
0:25 move second child to first child ( temp float)
|
||||
|
|
@ -75,7 +75,7 @@ triangle order = none
|
|||
0:25 Constant:
|
||||
0:25 1 (const int)
|
||||
0:25 direct index ( patch in float TessLevelOuter)
|
||||
0:? 'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:? 'pcf_data.flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:25 Constant:
|
||||
0:25 1 (const int)
|
||||
0:25 move second child to first child ( temp float)
|
||||
|
|
@ -87,7 +87,7 @@ triangle order = none
|
|||
0:25 Constant:
|
||||
0:25 2 (const int)
|
||||
0:25 direct index ( patch in float TessLevelOuter)
|
||||
0:? 'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:? 'pcf_data.flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:25 Constant:
|
||||
0:25 2 (const int)
|
||||
0:25 move second child to first child ( temp float)
|
||||
|
|
@ -96,7 +96,7 @@ triangle order = none
|
|||
0:25 Constant:
|
||||
0:25 1 (const int)
|
||||
0:25 direct index ( patch in float TessLevelInner)
|
||||
0:? 'pcf_data_flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
|
||||
0:? 'pcf_data.flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
|
||||
0:25 Constant:
|
||||
0:25 0 (const int)
|
||||
0:25 move second child to first child ( temp float)
|
||||
|
|
@ -122,24 +122,24 @@ triangle order = none
|
|||
0:? 'i' ( temp 3-element array of structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:? 'tesscoord' ( temp 3-component vector of float)
|
||||
0:25 move second child to first child ( temp 4-component vector of float)
|
||||
0:? 'pos' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.pos' (layout( location=0) out 4-component vector of float)
|
||||
0:25 pos: direct index for structure ( temp 4-component vector of float)
|
||||
0:25 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:25 Constant:
|
||||
0:25 0 (const int)
|
||||
0:25 move second child to first child ( temp 3-component vector of float)
|
||||
0:? 'norm' (layout( location=1) out 3-component vector of float)
|
||||
0:? '@entryPointOutput.norm' (layout( location=1) out 3-component vector of float)
|
||||
0:25 norm: direct index for structure ( temp 3-component vector of float)
|
||||
0:25 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:25 Constant:
|
||||
0:25 1 (const int)
|
||||
0:? Linker Objects
|
||||
0:? 'pos' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'norm' (layout( location=1) out 3-component vector of float)
|
||||
0:? '@entryPointOutput.pos' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.norm' (layout( location=1) out 3-component vector of float)
|
||||
0:? 'i' (layout( location=0) in 3-element array of structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:? 'tesscoord' ( patch in 3-component vector of float TessCoord)
|
||||
0:? 'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:? 'pcf_data_flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
|
||||
0:? 'pcf_data.flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:? 'pcf_data.flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
|
||||
0:? 'pcf_data' (layout( location=2) patch in structure{ temp float foo})
|
||||
|
||||
|
||||
|
|
@ -210,7 +210,7 @@ triangle order = none
|
|||
0:25 Constant:
|
||||
0:25 0 (const int)
|
||||
0:25 direct index ( patch in float TessLevelOuter)
|
||||
0:? 'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:? 'pcf_data.flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:25 Constant:
|
||||
0:25 0 (const int)
|
||||
0:25 move second child to first child ( temp float)
|
||||
|
|
@ -222,7 +222,7 @@ triangle order = none
|
|||
0:25 Constant:
|
||||
0:25 1 (const int)
|
||||
0:25 direct index ( patch in float TessLevelOuter)
|
||||
0:? 'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:? 'pcf_data.flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:25 Constant:
|
||||
0:25 1 (const int)
|
||||
0:25 move second child to first child ( temp float)
|
||||
|
|
@ -234,7 +234,7 @@ triangle order = none
|
|||
0:25 Constant:
|
||||
0:25 2 (const int)
|
||||
0:25 direct index ( patch in float TessLevelOuter)
|
||||
0:? 'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:? 'pcf_data.flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:25 Constant:
|
||||
0:25 2 (const int)
|
||||
0:25 move second child to first child ( temp float)
|
||||
|
|
@ -243,7 +243,7 @@ triangle order = none
|
|||
0:25 Constant:
|
||||
0:25 1 (const int)
|
||||
0:25 direct index ( patch in float TessLevelInner)
|
||||
0:? 'pcf_data_flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
|
||||
0:? 'pcf_data.flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
|
||||
0:25 Constant:
|
||||
0:25 0 (const int)
|
||||
0:25 move second child to first child ( temp float)
|
||||
|
|
@ -269,24 +269,24 @@ triangle order = none
|
|||
0:? 'i' ( temp 3-element array of structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:? 'tesscoord' ( temp 3-component vector of float)
|
||||
0:25 move second child to first child ( temp 4-component vector of float)
|
||||
0:? 'pos' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.pos' (layout( location=0) out 4-component vector of float)
|
||||
0:25 pos: direct index for structure ( temp 4-component vector of float)
|
||||
0:25 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:25 Constant:
|
||||
0:25 0 (const int)
|
||||
0:25 move second child to first child ( temp 3-component vector of float)
|
||||
0:? 'norm' (layout( location=1) out 3-component vector of float)
|
||||
0:? '@entryPointOutput.norm' (layout( location=1) out 3-component vector of float)
|
||||
0:25 norm: direct index for structure ( temp 3-component vector of float)
|
||||
0:25 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:25 Constant:
|
||||
0:25 1 (const int)
|
||||
0:? Linker Objects
|
||||
0:? 'pos' (layout( location=0) out 4-component vector of float)
|
||||
0:? 'norm' (layout( location=1) out 3-component vector of float)
|
||||
0:? '@entryPointOutput.pos' (layout( location=0) out 4-component vector of float)
|
||||
0:? '@entryPointOutput.norm' (layout( location=1) out 3-component vector of float)
|
||||
0:? 'i' (layout( location=0) in 3-element array of structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:? 'tesscoord' ( patch in 3-component vector of float TessCoord)
|
||||
0:? 'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:? 'pcf_data_flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
|
||||
0:? 'pcf_data.flTessFactor' ( patch in 4-element array of float TessLevelOuter)
|
||||
0:? 'pcf_data.flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
|
||||
0:? 'pcf_data' (layout( location=2) patch in structure{ temp float foo})
|
||||
|
||||
// Module Version 10000
|
||||
|
|
@ -316,8 +316,8 @@ triangle order = none
|
|||
Name 21 "tesscoord"
|
||||
Name 25 "o"
|
||||
Name 48 "pcf_data"
|
||||
Name 52 "pcf_data_flTessFactor"
|
||||
Name 67 "pcf_data_flInsideTessFactor"
|
||||
Name 52 "pcf_data.flTessFactor"
|
||||
Name 67 "pcf_data.flInsideTessFactor"
|
||||
Name 71 "pcf_in_t"
|
||||
MemberName 71(pcf_in_t) 0 "foo"
|
||||
Name 73 "pcf_data"
|
||||
|
|
@ -328,20 +328,20 @@ triangle order = none
|
|||
Name 86 "flattenTemp"
|
||||
Name 88 "param"
|
||||
Name 90 "param"
|
||||
Name 94 "pos"
|
||||
Name 98 "norm"
|
||||
Decorate 52(pcf_data_flTessFactor) Patch
|
||||
Decorate 52(pcf_data_flTessFactor) BuiltIn TessLevelOuter
|
||||
Decorate 67(pcf_data_flInsideTessFactor) Patch
|
||||
Decorate 67(pcf_data_flInsideTessFactor) BuiltIn TessLevelInner
|
||||
Name 94 "@entryPointOutput.pos"
|
||||
Name 98 "@entryPointOutput.norm"
|
||||
Decorate 52(pcf_data.flTessFactor) Patch
|
||||
Decorate 52(pcf_data.flTessFactor) BuiltIn TessLevelOuter
|
||||
Decorate 67(pcf_data.flInsideTessFactor) Patch
|
||||
Decorate 67(pcf_data.flInsideTessFactor) BuiltIn TessLevelInner
|
||||
MemberDecorate 71(pcf_in_t) 0 Patch
|
||||
Decorate 73(pcf_data) Patch
|
||||
Decorate 73(pcf_data) Location 2
|
||||
Decorate 80(i) Location 0
|
||||
Decorate 84(tesscoord) Patch
|
||||
Decorate 84(tesscoord) BuiltIn TessCoord
|
||||
Decorate 94(pos) Location 0
|
||||
Decorate 98(norm) Location 1
|
||||
Decorate 94(@entryPointOutput.pos) Location 0
|
||||
Decorate 98(@entryPointOutput.norm) Location 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -368,13 +368,13 @@ triangle order = none
|
|||
49: 7(int) Constant 4
|
||||
50: TypeArray 6(float) 49
|
||||
51: TypePointer Input 50
|
||||
52(pcf_data_flTessFactor): 51(ptr) Variable Input
|
||||
52(pcf_data.flTessFactor): 51(ptr) Variable Input
|
||||
53: TypePointer Input 6(float)
|
||||
60: 26(int) Constant 2
|
||||
64: 7(int) Constant 2
|
||||
65: TypeArray 6(float) 64
|
||||
66: TypePointer Input 65
|
||||
67(pcf_data_flInsideTessFactor): 66(ptr) Variable Input
|
||||
67(pcf_data.flInsideTessFactor): 66(ptr) Variable Input
|
||||
71(pcf_in_t): TypeStruct 6(float)
|
||||
72: TypePointer Input 71(pcf_in_t)
|
||||
73(pcf_data): 72(ptr) Variable Input
|
||||
|
|
@ -384,9 +384,9 @@ triangle order = none
|
|||
83: TypePointer Input 13(fvec3)
|
||||
84(tesscoord): 83(ptr) Variable Input
|
||||
93: TypePointer Output 12(fvec4)
|
||||
94(pos): 93(ptr) Variable Output
|
||||
94(@entryPointOutput.pos): 93(ptr) Variable Output
|
||||
97: TypePointer Output 13(fvec3)
|
||||
98(norm): 97(ptr) Variable Output
|
||||
98(@entryPointOutput.norm): 97(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
48(pcf_data): 11(ptr) Variable Function
|
||||
|
|
@ -395,19 +395,19 @@ triangle order = none
|
|||
86(flattenTemp): 24(ptr) Variable Function
|
||||
88(param): 11(ptr) Variable Function
|
||||
90(param): 16(ptr) Variable Function
|
||||
54: 53(ptr) AccessChain 52(pcf_data_flTessFactor) 27
|
||||
54: 53(ptr) AccessChain 52(pcf_data.flTessFactor) 27
|
||||
55: 6(float) Load 54
|
||||
56: 30(ptr) AccessChain 48(pcf_data) 27 27
|
||||
Store 56 55
|
||||
57: 53(ptr) AccessChain 52(pcf_data_flTessFactor) 37
|
||||
57: 53(ptr) AccessChain 52(pcf_data.flTessFactor) 37
|
||||
58: 6(float) Load 57
|
||||
59: 30(ptr) AccessChain 48(pcf_data) 27 37
|
||||
Store 59 58
|
||||
61: 53(ptr) AccessChain 52(pcf_data_flTessFactor) 60
|
||||
61: 53(ptr) AccessChain 52(pcf_data.flTessFactor) 60
|
||||
62: 6(float) Load 61
|
||||
63: 30(ptr) AccessChain 48(pcf_data) 27 60
|
||||
Store 63 62
|
||||
68: 53(ptr) AccessChain 67(pcf_data_flInsideTessFactor) 27
|
||||
68: 53(ptr) AccessChain 67(pcf_data.flInsideTessFactor) 27
|
||||
69: 6(float) Load 68
|
||||
70: 30(ptr) AccessChain 48(pcf_data) 37
|
||||
Store 70 69
|
||||
|
|
@ -428,10 +428,10 @@ triangle order = none
|
|||
Store 86(flattenTemp) 92
|
||||
95: 35(ptr) AccessChain 86(flattenTemp) 27
|
||||
96: 12(fvec4) Load 95
|
||||
Store 94(pos) 96
|
||||
Store 94(@entryPointOutput.pos) 96
|
||||
99: 16(ptr) AccessChain 86(flattenTemp) 37
|
||||
100: 13(fvec3) Load 99
|
||||
Store 98(norm) 100
|
||||
Store 98(@entryPointOutput.norm) 100
|
||||
Return
|
||||
FunctionEnd
|
||||
22(@main(struct-pcf_in_t-f1[3]-f1-f11;struct-ds_in_t-vf4-vf31[3];vf3;): 17(gs_in_t) Function None 18
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue