HLSL: Move debug naming to a simpler, more consistent, scheme.
This will help in expanding flattening and reducing splitting.
This commit is contained in:
@@ -86,7 +86,7 @@ triangle order = cw
|
||||
0:? Sequence
|
||||
0:? move second child to first child ( temp float)
|
||||
0:? direct index ( patch out float TessLevelOuter)
|
||||
0:? '@patchConstantOutput_tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? '@patchConstantOutput.tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? Constant:
|
||||
0:? 0 (const int)
|
||||
0:? direct index ( temp float)
|
||||
@@ -98,7 +98,7 @@ triangle order = cw
|
||||
0:? 0 (const int)
|
||||
0:? move second child to first child ( temp float)
|
||||
0:? direct index ( patch out float TessLevelOuter)
|
||||
0:? '@patchConstantOutput_tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? '@patchConstantOutput.tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? direct index ( temp float)
|
||||
@@ -110,7 +110,7 @@ triangle order = cw
|
||||
0:? 1 (const int)
|
||||
0:? move second child to first child ( temp float)
|
||||
0:? direct index ( patch out float TessLevelOuter)
|
||||
0:? '@patchConstantOutput_tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? '@patchConstantOutput.tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? Constant:
|
||||
0:? 2 (const int)
|
||||
0:? direct index ( temp float)
|
||||
@@ -122,7 +122,7 @@ triangle order = cw
|
||||
0:? 2 (const int)
|
||||
0:? move second child to first child ( temp float)
|
||||
0:? direct index ( patch out float TessLevelInner)
|
||||
0:? '@patchConstantOutput_flInFactor' ( patch out 2-element array of float TessLevelInner)
|
||||
0:? '@patchConstantOutput.flInFactor' ( patch out 2-element array of float TessLevelInner)
|
||||
0:? Constant:
|
||||
0:? 0 (const int)
|
||||
0:? flInFactor: direct index for structure ( temp float)
|
||||
@@ -201,8 +201,8 @@ triangle order = cw
|
||||
0:? '@entryPointOutput' (layout( location=0) out 3-element array of structure{ temp 3-component vector of float val})
|
||||
0:? 'i' (layout( location=0) in 3-element array of structure{ temp 3-component vector of float val})
|
||||
0:? 'cpid' ( in uint InvocationID)
|
||||
0:? '@patchConstantOutput_tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? '@patchConstantOutput_flInFactor' ( patch out 2-element array of float TessLevelInner)
|
||||
0:? '@patchConstantOutput.tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? '@patchConstantOutput.flInFactor' ( patch out 2-element array of float TessLevelInner)
|
||||
|
||||
|
||||
Linked tessellation control stage:
|
||||
@@ -295,7 +295,7 @@ triangle order = cw
|
||||
0:? Sequence
|
||||
0:? move second child to first child ( temp float)
|
||||
0:? direct index ( patch out float TessLevelOuter)
|
||||
0:? '@patchConstantOutput_tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? '@patchConstantOutput.tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? Constant:
|
||||
0:? 0 (const int)
|
||||
0:? direct index ( temp float)
|
||||
@@ -307,7 +307,7 @@ triangle order = cw
|
||||
0:? 0 (const int)
|
||||
0:? move second child to first child ( temp float)
|
||||
0:? direct index ( patch out float TessLevelOuter)
|
||||
0:? '@patchConstantOutput_tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? '@patchConstantOutput.tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? direct index ( temp float)
|
||||
@@ -319,7 +319,7 @@ triangle order = cw
|
||||
0:? 1 (const int)
|
||||
0:? move second child to first child ( temp float)
|
||||
0:? direct index ( patch out float TessLevelOuter)
|
||||
0:? '@patchConstantOutput_tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? '@patchConstantOutput.tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? Constant:
|
||||
0:? 2 (const int)
|
||||
0:? direct index ( temp float)
|
||||
@@ -331,7 +331,7 @@ triangle order = cw
|
||||
0:? 2 (const int)
|
||||
0:? move second child to first child ( temp float)
|
||||
0:? direct index ( patch out float TessLevelInner)
|
||||
0:? '@patchConstantOutput_flInFactor' ( patch out 2-element array of float TessLevelInner)
|
||||
0:? '@patchConstantOutput.flInFactor' ( patch out 2-element array of float TessLevelInner)
|
||||
0:? Constant:
|
||||
0:? 0 (const int)
|
||||
0:? flInFactor: direct index for structure ( temp float)
|
||||
@@ -410,8 +410,8 @@ triangle order = cw
|
||||
0:? '@entryPointOutput' (layout( location=0) out 3-element array of structure{ temp 3-component vector of float val})
|
||||
0:? 'i' (layout( location=0) in 3-element array of structure{ temp 3-component vector of float val})
|
||||
0:? 'cpid' ( in uint InvocationID)
|
||||
0:? '@patchConstantOutput_tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? '@patchConstantOutput_flInFactor' ( patch out 2-element array of float TessLevelInner)
|
||||
0:? '@patchConstantOutput.tfactor' ( patch out 4-element array of float TessLevelOuter)
|
||||
0:? '@patchConstantOutput.flInFactor' ( patch out 2-element array of float TessLevelInner)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
@@ -459,16 +459,16 @@ triangle order = cw
|
||||
Name 83 "param"
|
||||
Name 85 "param"
|
||||
Name 89 "@patchConstantResult"
|
||||
Name 96 "@patchConstantOutput_tfactor"
|
||||
Name 110 "@patchConstantOutput_flInFactor"
|
||||
Name 96 "@patchConstantOutput.tfactor"
|
||||
Name 110 "@patchConstantOutput.flInFactor"
|
||||
Name 114 "o"
|
||||
Decorate 42(i) Location 0
|
||||
Decorate 46(cpid) BuiltIn InvocationId
|
||||
Decorate 49(@entryPointOutput) Location 0
|
||||
Decorate 96(@patchConstantOutput_tfactor) Patch
|
||||
Decorate 96(@patchConstantOutput_tfactor) BuiltIn TessLevelOuter
|
||||
Decorate 110(@patchConstantOutput_flInFactor) Patch
|
||||
Decorate 110(@patchConstantOutput_flInFactor) BuiltIn TessLevelInner
|
||||
Decorate 96(@patchConstantOutput.tfactor) Patch
|
||||
Decorate 96(@patchConstantOutput.tfactor) BuiltIn TessLevelOuter
|
||||
Decorate 110(@patchConstantOutput.flInFactor) Patch
|
||||
Decorate 110(@patchConstantOutput.flInFactor) BuiltIn TessLevelInner
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -507,12 +507,12 @@ triangle order = cw
|
||||
93: 9(int) Constant 4
|
||||
94: TypeArray 6(float) 93
|
||||
95: TypePointer Output 94
|
||||
96(@patchConstantOutput_tfactor): 95(ptr) Variable Output
|
||||
96(@patchConstantOutput.tfactor): 95(ptr) Variable Output
|
||||
97: TypePointer Function 6(float)
|
||||
100: TypePointer Output 6(float)
|
||||
108: TypeArray 6(float) 58
|
||||
109: TypePointer Output 108
|
||||
110(@patchConstantOutput_flInFactor): 109(ptr) Variable Output
|
||||
110(@patchConstantOutput.flInFactor): 109(ptr) Variable Output
|
||||
121: 6(float) Constant 1082130432
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
@@ -573,19 +573,19 @@ triangle order = cw
|
||||
Store 89(@patchConstantResult) 92
|
||||
98: 97(ptr) AccessChain 89(@patchConstantResult) 29 29
|
||||
99: 6(float) Load 98
|
||||
101: 100(ptr) AccessChain 96(@patchConstantOutput_tfactor) 29
|
||||
101: 100(ptr) AccessChain 96(@patchConstantOutput.tfactor) 29
|
||||
Store 101 99
|
||||
102: 97(ptr) AccessChain 89(@patchConstantResult) 29 74
|
||||
103: 6(float) Load 102
|
||||
104: 100(ptr) AccessChain 96(@patchConstantOutput_tfactor) 74
|
||||
104: 100(ptr) AccessChain 96(@patchConstantOutput.tfactor) 74
|
||||
Store 104 103
|
||||
105: 97(ptr) AccessChain 89(@patchConstantResult) 29 81
|
||||
106: 6(float) Load 105
|
||||
107: 100(ptr) AccessChain 96(@patchConstantOutput_tfactor) 81
|
||||
107: 100(ptr) AccessChain 96(@patchConstantOutput.tfactor) 81
|
||||
Store 107 106
|
||||
111: 97(ptr) AccessChain 89(@patchConstantResult) 74
|
||||
112: 6(float) Load 111
|
||||
113: 100(ptr) AccessChain 110(@patchConstantOutput_flInFactor) 29
|
||||
113: 100(ptr) AccessChain 110(@patchConstantOutput.flInFactor) 29
|
||||
Store 113 112
|
||||
Branch 65
|
||||
65: Label
|
||||
|
||||
Reference in New Issue
Block a user