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
|
|
@ -69,7 +69,7 @@ triangle order = none
|
|||
0:22 Constant:
|
||||
0:22 0 (const int)
|
||||
0:22 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:22 Constant:
|
||||
0:22 0 (const int)
|
||||
0:22 move second child to first child ( temp float)
|
||||
|
|
@ -81,7 +81,7 @@ triangle order = none
|
|||
0:22 Constant:
|
||||
0:22 1 (const int)
|
||||
0:22 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:22 Constant:
|
||||
0:22 1 (const int)
|
||||
0:22 move second child to first child ( temp float)
|
||||
|
|
@ -93,7 +93,7 @@ triangle order = none
|
|||
0:22 Constant:
|
||||
0:22 2 (const int)
|
||||
0:22 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:22 Constant:
|
||||
0:22 2 (const int)
|
||||
0:22 move second child to first child ( temp float)
|
||||
|
|
@ -102,7 +102,7 @@ triangle order = none
|
|||
0:22 Constant:
|
||||
0:22 1 (const int)
|
||||
0:22 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:22 Constant:
|
||||
0:22 0 (const int)
|
||||
0:22 Sequence
|
||||
|
|
@ -113,24 +113,24 @@ triangle order = none
|
|||
0:? 'tesscoord' ( temp 3-component vector of float)
|
||||
0:? 'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor, temp float flInsideTessFactor})
|
||||
0:22 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:22 pos: direct index for structure ( temp 4-component vector of float)
|
||||
0:22 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:22 Constant:
|
||||
0:22 0 (const int)
|
||||
0:22 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:22 norm: direct index for structure ( temp 3-component vector of float)
|
||||
0:22 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:22 Constant:
|
||||
0:22 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)
|
||||
|
||||
|
||||
Linked tessellation evaluation stage:
|
||||
|
|
@ -206,7 +206,7 @@ triangle order = none
|
|||
0:22 Constant:
|
||||
0:22 0 (const int)
|
||||
0:22 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:22 Constant:
|
||||
0:22 0 (const int)
|
||||
0:22 move second child to first child ( temp float)
|
||||
|
|
@ -218,7 +218,7 @@ triangle order = none
|
|||
0:22 Constant:
|
||||
0:22 1 (const int)
|
||||
0:22 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:22 Constant:
|
||||
0:22 1 (const int)
|
||||
0:22 move second child to first child ( temp float)
|
||||
|
|
@ -230,7 +230,7 @@ triangle order = none
|
|||
0:22 Constant:
|
||||
0:22 2 (const int)
|
||||
0:22 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:22 Constant:
|
||||
0:22 2 (const int)
|
||||
0:22 move second child to first child ( temp float)
|
||||
|
|
@ -239,7 +239,7 @@ triangle order = none
|
|||
0:22 Constant:
|
||||
0:22 1 (const int)
|
||||
0:22 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:22 Constant:
|
||||
0:22 0 (const int)
|
||||
0:22 Sequence
|
||||
|
|
@ -250,24 +250,24 @@ triangle order = none
|
|||
0:? 'tesscoord' ( temp 3-component vector of float)
|
||||
0:? 'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor, temp float flInsideTessFactor})
|
||||
0:22 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:22 pos: direct index for structure ( temp 4-component vector of float)
|
||||
0:22 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:22 Constant:
|
||||
0:22 0 (const int)
|
||||
0:22 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:22 norm: direct index for structure ( temp 3-component vector of float)
|
||||
0:22 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:22 Constant:
|
||||
0:22 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)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
|
|
@ -299,22 +299,22 @@ triangle order = none
|
|||
Name 53 "tesscoord"
|
||||
Name 55 "tesscoord"
|
||||
Name 57 "pcf_data"
|
||||
Name 61 "pcf_data_flTessFactor"
|
||||
Name 76 "pcf_data_flInsideTessFactor"
|
||||
Name 61 "pcf_data.flTessFactor"
|
||||
Name 76 "pcf_data.flInsideTessFactor"
|
||||
Name 80 "flattenTemp"
|
||||
Name 82 "param"
|
||||
Name 84 "param"
|
||||
Name 88 "pos"
|
||||
Name 92 "norm"
|
||||
Name 88 "@entryPointOutput.pos"
|
||||
Name 92 "@entryPointOutput.norm"
|
||||
Decorate 51(i) Location 0
|
||||
Decorate 55(tesscoord) Patch
|
||||
Decorate 55(tesscoord) BuiltIn TessCoord
|
||||
Decorate 61(pcf_data_flTessFactor) Patch
|
||||
Decorate 61(pcf_data_flTessFactor) BuiltIn TessLevelOuter
|
||||
Decorate 76(pcf_data_flInsideTessFactor) Patch
|
||||
Decorate 76(pcf_data_flInsideTessFactor) BuiltIn TessLevelInner
|
||||
Decorate 88(pos) Location 0
|
||||
Decorate 92(norm) Location 1
|
||||
Decorate 61(pcf_data.flTessFactor) Patch
|
||||
Decorate 61(pcf_data.flTessFactor) BuiltIn TessLevelOuter
|
||||
Decorate 76(pcf_data.flInsideTessFactor) Patch
|
||||
Decorate 76(pcf_data.flInsideTessFactor) BuiltIn TessLevelInner
|
||||
Decorate 88(@entryPointOutput.pos) Location 0
|
||||
Decorate 92(@entryPointOutput.norm) Location 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -346,17 +346,17 @@ triangle order = none
|
|||
58: 10(int) Constant 4
|
||||
59: TypeArray 6(float) 58
|
||||
60: TypePointer Input 59
|
||||
61(pcf_data_flTessFactor): 60(ptr) Variable Input
|
||||
61(pcf_data.flTessFactor): 60(ptr) Variable Input
|
||||
62: TypePointer Input 6(float)
|
||||
69: 26(int) Constant 2
|
||||
73: 10(int) Constant 2
|
||||
74: TypeArray 6(float) 73
|
||||
75: TypePointer Input 74
|
||||
76(pcf_data_flInsideTessFactor): 75(ptr) Variable Input
|
||||
76(pcf_data.flInsideTessFactor): 75(ptr) Variable Input
|
||||
87: TypePointer Output 7(fvec4)
|
||||
88(pos): 87(ptr) Variable Output
|
||||
88(@entryPointOutput.pos): 87(ptr) Variable Output
|
||||
91: TypePointer Output 8(fvec3)
|
||||
92(norm): 91(ptr) Variable Output
|
||||
92(@entryPointOutput.norm): 91(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
49(i): 48(ptr) Variable Function
|
||||
|
|
@ -369,19 +369,19 @@ triangle order = none
|
|||
Store 49(i) 52
|
||||
56: 8(fvec3) Load 55(tesscoord)
|
||||
Store 53(tesscoord) 56
|
||||
63: 62(ptr) AccessChain 61(pcf_data_flTessFactor) 27
|
||||
63: 62(ptr) AccessChain 61(pcf_data.flTessFactor) 27
|
||||
64: 6(float) Load 63
|
||||
65: 30(ptr) AccessChain 57(pcf_data) 27 27
|
||||
Store 65 64
|
||||
66: 62(ptr) AccessChain 61(pcf_data_flTessFactor) 37
|
||||
66: 62(ptr) AccessChain 61(pcf_data.flTessFactor) 37
|
||||
67: 6(float) Load 66
|
||||
68: 30(ptr) AccessChain 57(pcf_data) 27 37
|
||||
Store 68 67
|
||||
70: 62(ptr) AccessChain 61(pcf_data_flTessFactor) 69
|
||||
70: 62(ptr) AccessChain 61(pcf_data.flTessFactor) 69
|
||||
71: 6(float) Load 70
|
||||
72: 30(ptr) AccessChain 57(pcf_data) 27 69
|
||||
Store 72 71
|
||||
77: 62(ptr) AccessChain 76(pcf_data_flInsideTessFactor) 27
|
||||
77: 62(ptr) AccessChain 76(pcf_data.flInsideTessFactor) 27
|
||||
78: 6(float) Load 77
|
||||
79: 30(ptr) AccessChain 57(pcf_data) 37
|
||||
Store 79 78
|
||||
|
|
@ -394,10 +394,10 @@ triangle order = none
|
|||
Store 80(flattenTemp) 86
|
||||
89: 35(ptr) AccessChain 80(flattenTemp) 27
|
||||
90: 7(fvec4) Load 89
|
||||
Store 88(pos) 90
|
||||
Store 88(@entryPointOutput.pos) 90
|
||||
93: 13(ptr) AccessChain 80(flattenTemp) 37
|
||||
94: 8(fvec3) Load 93
|
||||
Store 92(norm) 94
|
||||
Store 92(@entryPointOutput.norm) 94
|
||||
Return
|
||||
FunctionEnd
|
||||
22(@main(struct-ds_in_t-vf4-vf31[3];vf3;struct-pcf_in_t-f1[3]-f11;): 17(gs_in_t) Function None 18
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue