HLSL: Move debug naming to a simpler, more consistent, scheme.
This will help in expanding flattening and reducing splitting.
This commit is contained in:
@@ -66,7 +66,7 @@ triangle order = none
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 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:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 move second child to first child ( temp float)
|
||||
@@ -78,7 +78,7 @@ triangle order = none
|
||||
0:24 Constant:
|
||||
0:24 1 (const int)
|
||||
0:24 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:24 Constant:
|
||||
0:24 1 (const int)
|
||||
0:24 move second child to first child ( temp float)
|
||||
@@ -90,7 +90,7 @@ triangle order = none
|
||||
0:24 Constant:
|
||||
0:24 2 (const int)
|
||||
0:24 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:24 Constant:
|
||||
0:24 2 (const int)
|
||||
0:24 move second child to first child ( temp float)
|
||||
@@ -99,7 +99,7 @@ triangle order = none
|
||||
0:24 Constant:
|
||||
0:24 1 (const int)
|
||||
0:24 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:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 Sequence
|
||||
@@ -110,24 +110,24 @@ triangle order = none
|
||||
0:? 'tesscoord' ( temp 2-component vector of float)
|
||||
0:? 'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor, temp float flInsideTessFactor})
|
||||
0:24 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:24 pos: direct index for structure ( temp 4-component vector of float)
|
||||
0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 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:24 norm: direct index for structure ( temp 3-component vector of float)
|
||||
0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:24 Constant:
|
||||
0:24 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 2-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:
|
||||
@@ -200,7 +200,7 @@ triangle order = none
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 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:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 move second child to first child ( temp float)
|
||||
@@ -212,7 +212,7 @@ triangle order = none
|
||||
0:24 Constant:
|
||||
0:24 1 (const int)
|
||||
0:24 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:24 Constant:
|
||||
0:24 1 (const int)
|
||||
0:24 move second child to first child ( temp float)
|
||||
@@ -224,7 +224,7 @@ triangle order = none
|
||||
0:24 Constant:
|
||||
0:24 2 (const int)
|
||||
0:24 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:24 Constant:
|
||||
0:24 2 (const int)
|
||||
0:24 move second child to first child ( temp float)
|
||||
@@ -233,7 +233,7 @@ triangle order = none
|
||||
0:24 Constant:
|
||||
0:24 1 (const int)
|
||||
0:24 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:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 Sequence
|
||||
@@ -244,24 +244,24 @@ triangle order = none
|
||||
0:? 'tesscoord' ( temp 2-component vector of float)
|
||||
0:? 'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor, temp float flInsideTessFactor})
|
||||
0:24 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:24 pos: direct index for structure ( temp 4-component vector of float)
|
||||
0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 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:24 norm: direct index for structure ( temp 3-component vector of float)
|
||||
0:24 'flattenTemp' ( temp structure{ temp 4-component vector of float pos, temp 3-component vector of float norm})
|
||||
0:24 Constant:
|
||||
0:24 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 2-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
|
||||
@@ -293,22 +293,22 @@ triangle order = none
|
||||
Name 56 "tesscoord"
|
||||
Name 58 "tesscoord"
|
||||
Name 63 "pcf_data"
|
||||
Name 67 "pcf_data_flTessFactor"
|
||||
Name 81 "pcf_data_flInsideTessFactor"
|
||||
Name 67 "pcf_data.flTessFactor"
|
||||
Name 81 "pcf_data.flInsideTessFactor"
|
||||
Name 85 "flattenTemp"
|
||||
Name 87 "param"
|
||||
Name 89 "param"
|
||||
Name 93 "pos"
|
||||
Name 97 "norm"
|
||||
Name 93 "@entryPointOutput.pos"
|
||||
Name 97 "@entryPointOutput.norm"
|
||||
Decorate 54(i) Location 0
|
||||
Decorate 58(tesscoord) Patch
|
||||
Decorate 58(tesscoord) BuiltIn TessCoord
|
||||
Decorate 67(pcf_data_flTessFactor) Patch
|
||||
Decorate 67(pcf_data_flTessFactor) BuiltIn TessLevelOuter
|
||||
Decorate 81(pcf_data_flInsideTessFactor) Patch
|
||||
Decorate 81(pcf_data_flInsideTessFactor) BuiltIn TessLevelInner
|
||||
Decorate 93(pos) Location 0
|
||||
Decorate 97(norm) Location 1
|
||||
Decorate 67(pcf_data.flTessFactor) Patch
|
||||
Decorate 67(pcf_data.flTessFactor) BuiltIn TessLevelOuter
|
||||
Decorate 81(pcf_data.flInsideTessFactor) Patch
|
||||
Decorate 81(pcf_data.flInsideTessFactor) BuiltIn TessLevelInner
|
||||
Decorate 93(@entryPointOutput.pos) Location 0
|
||||
Decorate 97(@entryPointOutput.norm) Location 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -343,16 +343,16 @@ triangle order = none
|
||||
64: 10(int) Constant 4
|
||||
65: TypeArray 6(float) 64
|
||||
66: TypePointer Input 65
|
||||
67(pcf_data_flTessFactor): 66(ptr) Variable Input
|
||||
67(pcf_data.flTessFactor): 66(ptr) Variable Input
|
||||
68: TypePointer Input 6(float)
|
||||
75: 28(int) Constant 2
|
||||
79: TypeArray 6(float) 11
|
||||
80: TypePointer Input 79
|
||||
81(pcf_data_flInsideTessFactor): 80(ptr) Variable Input
|
||||
81(pcf_data.flInsideTessFactor): 80(ptr) Variable Input
|
||||
92: TypePointer Output 7(fvec4)
|
||||
93(pos): 92(ptr) Variable Output
|
||||
93(@entryPointOutput.pos): 92(ptr) Variable Output
|
||||
96: TypePointer Output 8(fvec3)
|
||||
97(norm): 96(ptr) Variable Output
|
||||
97(@entryPointOutput.norm): 96(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
52(i): 51(ptr) Variable Function
|
||||
@@ -368,19 +368,19 @@ triangle order = none
|
||||
61: 6(float) CompositeExtract 59 1
|
||||
62: 13(fvec2) CompositeConstruct 60 61
|
||||
Store 56(tesscoord) 62
|
||||
69: 68(ptr) AccessChain 67(pcf_data_flTessFactor) 29
|
||||
69: 68(ptr) AccessChain 67(pcf_data.flTessFactor) 29
|
||||
70: 6(float) Load 69
|
||||
71: 32(ptr) AccessChain 63(pcf_data) 29 29
|
||||
Store 71 70
|
||||
72: 68(ptr) AccessChain 67(pcf_data_flTessFactor) 39
|
||||
72: 68(ptr) AccessChain 67(pcf_data.flTessFactor) 39
|
||||
73: 6(float) Load 72
|
||||
74: 32(ptr) AccessChain 63(pcf_data) 29 39
|
||||
Store 74 73
|
||||
76: 68(ptr) AccessChain 67(pcf_data_flTessFactor) 75
|
||||
76: 68(ptr) AccessChain 67(pcf_data.flTessFactor) 75
|
||||
77: 6(float) Load 76
|
||||
78: 32(ptr) AccessChain 63(pcf_data) 29 75
|
||||
Store 78 77
|
||||
82: 68(ptr) AccessChain 81(pcf_data_flInsideTessFactor) 29
|
||||
82: 68(ptr) AccessChain 81(pcf_data.flInsideTessFactor) 29
|
||||
83: 6(float) Load 82
|
||||
84: 32(ptr) AccessChain 63(pcf_data) 39
|
||||
Store 84 83
|
||||
@@ -393,10 +393,10 @@ triangle order = none
|
||||
Store 85(flattenTemp) 91
|
||||
94: 37(ptr) AccessChain 85(flattenTemp) 29
|
||||
95: 7(fvec4) Load 94
|
||||
Store 93(pos) 95
|
||||
Store 93(@entryPointOutput.pos) 95
|
||||
98: 46(ptr) AccessChain 85(flattenTemp) 39
|
||||
99: 8(fvec3) Load 98
|
||||
Store 97(norm) 99
|
||||
Store 97(@entryPointOutput.norm) 99
|
||||
Return
|
||||
FunctionEnd
|
||||
24(@main(struct-ds_in_t-vf4-vf31[2];vf2;struct-pcf_in_t-f1[3]-f11;): 19(gs_in_t) Function None 20
|
||||
|
||||
Reference in New Issue
Block a user