HLSL: Move debug naming to a simpler, more consistent, scheme.
This will help in expanding flattening and reducing splitting.
This commit is contained in:
@@ -73,7 +73,7 @@ output primitive = triangle_strip
|
||||
0:33 Sequence
|
||||
0:33 Sequence
|
||||
0:33 move second child to first child ( temp 4-component vector of float)
|
||||
0:? 'ts_psIn_pos' ( out 4-component vector of float Position)
|
||||
0:? 'ts.psIn.pos' ( out 4-component vector of float Position)
|
||||
0:33 pos: direct index for structure ( temp 4-component vector of float)
|
||||
0:33 psIn: direct index for structure ( temp structure{ temp 4-component vector of float pos, temp 2-component vector of float tc})
|
||||
0:33 'o' ( temp structure{ temp structure{ temp 4-component vector of float pos, temp 2-component vector of float tc} psIn, temp structure{ temp 2-element array of float m0_array, temp int m1} contains_no_builtin_io})
|
||||
@@ -119,7 +119,7 @@ output primitive = triangle_strip
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 direct index ( in 4-component vector of float Position)
|
||||
0:? 'tin_pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:? 'tin.pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 move second child to first child ( temp 2-component vector of float)
|
||||
@@ -146,7 +146,7 @@ output primitive = triangle_strip
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 direct index ( in 4-component vector of float Position)
|
||||
0:? 'tin_pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:? 'tin.pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:24 Constant:
|
||||
0:24 1 (const int)
|
||||
0:24 move second child to first child ( temp 2-component vector of float)
|
||||
@@ -173,7 +173,7 @@ output primitive = triangle_strip
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 direct index ( in 4-component vector of float Position)
|
||||
0:? 'tin_pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:? 'tin.pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:24 Constant:
|
||||
0:24 2 (const int)
|
||||
0:24 move second child to first child ( temp 2-component vector of float)
|
||||
@@ -195,9 +195,9 @@ output primitive = triangle_strip
|
||||
0:? 'tin' ( temp 3-element array of structure{ temp 4-component vector of float pos, temp 2-component vector of float tc})
|
||||
0:? 'ts' ( temp structure{ temp structure{ temp 4-component vector of float pos, temp 2-component vector of float tc} psIn, temp structure{ temp 2-element array of float m0_array, temp int m1} contains_no_builtin_io})
|
||||
0:? Linker Objects
|
||||
0:? 'tin_pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:? 'tin.pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:? 'tin' (layout( location=0) in 3-element array of structure{ temp 2-component vector of float tc})
|
||||
0:? 'ts_psIn_pos' ( out 4-component vector of float Position)
|
||||
0:? 'ts.psIn.pos' ( out 4-component vector of float Position)
|
||||
0:? 'ts' (layout( location=0) out structure{ temp structure{ temp 2-component vector of float tc} psIn, temp structure{ temp 2-element array of float m0_array, temp int m1} contains_no_builtin_io})
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@ output primitive = triangle_strip
|
||||
0:33 Sequence
|
||||
0:33 Sequence
|
||||
0:33 move second child to first child ( temp 4-component vector of float)
|
||||
0:? 'ts_psIn_pos' ( out 4-component vector of float Position)
|
||||
0:? 'ts.psIn.pos' ( out 4-component vector of float Position)
|
||||
0:33 pos: direct index for structure ( temp 4-component vector of float)
|
||||
0:33 psIn: direct index for structure ( temp structure{ temp 4-component vector of float pos, temp 2-component vector of float tc})
|
||||
0:33 'o' ( temp structure{ temp structure{ temp 4-component vector of float pos, temp 2-component vector of float tc} psIn, temp structure{ temp 2-element array of float m0_array, temp int m1} contains_no_builtin_io})
|
||||
@@ -324,7 +324,7 @@ output primitive = triangle_strip
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 direct index ( in 4-component vector of float Position)
|
||||
0:? 'tin_pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:? 'tin.pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 move second child to first child ( temp 2-component vector of float)
|
||||
@@ -351,7 +351,7 @@ output primitive = triangle_strip
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 direct index ( in 4-component vector of float Position)
|
||||
0:? 'tin_pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:? 'tin.pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:24 Constant:
|
||||
0:24 1 (const int)
|
||||
0:24 move second child to first child ( temp 2-component vector of float)
|
||||
@@ -378,7 +378,7 @@ output primitive = triangle_strip
|
||||
0:24 Constant:
|
||||
0:24 0 (const int)
|
||||
0:24 direct index ( in 4-component vector of float Position)
|
||||
0:? 'tin_pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:? 'tin.pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:24 Constant:
|
||||
0:24 2 (const int)
|
||||
0:24 move second child to first child ( temp 2-component vector of float)
|
||||
@@ -400,9 +400,9 @@ output primitive = triangle_strip
|
||||
0:? 'tin' ( temp 3-element array of structure{ temp 4-component vector of float pos, temp 2-component vector of float tc})
|
||||
0:? 'ts' ( temp structure{ temp structure{ temp 4-component vector of float pos, temp 2-component vector of float tc} psIn, temp structure{ temp 2-element array of float m0_array, temp int m1} contains_no_builtin_io})
|
||||
0:? Linker Objects
|
||||
0:? 'tin_pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:? 'tin.pos' ( in 3-element array of 4-component vector of float Position)
|
||||
0:? 'tin' (layout( location=0) in 3-element array of structure{ temp 2-component vector of float tc})
|
||||
0:? 'ts_psIn_pos' ( out 4-component vector of float Position)
|
||||
0:? 'ts.psIn.pos' ( out 4-component vector of float Position)
|
||||
0:? 'ts' (layout( location=0) out structure{ temp structure{ temp 2-component vector of float tc} psIn, temp structure{ temp 2-element array of float m0_array, temp int m1} contains_no_builtin_io})
|
||||
|
||||
// Module Version 10000
|
||||
@@ -432,7 +432,7 @@ output primitive = triangle_strip
|
||||
Name 21 "tin"
|
||||
Name 22 "ts"
|
||||
Name 25 "o"
|
||||
Name 48 "ts_psIn_pos"
|
||||
Name 48 "ts.psIn.pos"
|
||||
Name 51 "PS_IN"
|
||||
MemberName 51(PS_IN) 0 "tc"
|
||||
Name 52 "STRUCT_WITH_NO_BUILTIN_INTERSTAGE_IO"
|
||||
@@ -443,16 +443,16 @@ output primitive = triangle_strip
|
||||
MemberName 53(GS_OUT) 1 "contains_no_builtin_io"
|
||||
Name 55 "ts"
|
||||
Name 71 "tin"
|
||||
Name 74 "tin_pos"
|
||||
Name 74 "tin.pos"
|
||||
Name 79 "PS_IN"
|
||||
MemberName 79(PS_IN) 0 "tc"
|
||||
Name 82 "tin"
|
||||
Name 99 "ts"
|
||||
Name 100 "param"
|
||||
Name 102 "param"
|
||||
Decorate 48(ts_psIn_pos) BuiltIn Position
|
||||
Decorate 48(ts.psIn.pos) BuiltIn Position
|
||||
Decorate 55(ts) Location 0
|
||||
Decorate 74(tin_pos) BuiltIn Position
|
||||
Decorate 74(tin.pos) BuiltIn Position
|
||||
Decorate 82(tin) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
@@ -488,7 +488,7 @@ output primitive = triangle_strip
|
||||
44: 16(int) Constant 2
|
||||
45: TypePointer Function 16(int)
|
||||
47: TypePointer Output 7(fvec4)
|
||||
48(ts_psIn_pos): 47(ptr) Variable Output
|
||||
48(ts.psIn.pos): 47(ptr) Variable Output
|
||||
51(PS_IN): TypeStruct 8(fvec2)
|
||||
52(STRUCT_WITH_NO_BUILTIN_INTERSTAGE_IO): TypeStruct 15 16(int)
|
||||
53(GS_OUT): TypeStruct 51(PS_IN) 52(STRUCT_WITH_NO_BUILTIN_INTERSTAGE_IO)
|
||||
@@ -501,7 +501,7 @@ output primitive = triangle_strip
|
||||
69: TypePointer Output 16(int)
|
||||
72: TypeArray 7(fvec4) 11
|
||||
73: TypePointer Input 72
|
||||
74(tin_pos): 73(ptr) Variable Input
|
||||
74(tin.pos): 73(ptr) Variable Input
|
||||
75: TypePointer Input 7(fvec4)
|
||||
79(PS_IN): TypeStruct 8(fvec2)
|
||||
80: TypeArray 79(PS_IN) 11
|
||||
@@ -514,7 +514,7 @@ output primitive = triangle_strip
|
||||
99(ts): 19(ptr) Variable Function
|
||||
100(param): 13(ptr) Variable Function
|
||||
102(param): 19(ptr) Variable Function
|
||||
76: 75(ptr) AccessChain 74(tin_pos) 26
|
||||
76: 75(ptr) AccessChain 74(tin.pos) 26
|
||||
77: 7(fvec4) Load 76
|
||||
78: 32(ptr) AccessChain 71(tin) 26 26
|
||||
Store 78 77
|
||||
@@ -522,7 +522,7 @@ output primitive = triangle_strip
|
||||
85: 8(fvec2) Load 84
|
||||
86: 38(ptr) AccessChain 71(tin) 26 34
|
||||
Store 86 85
|
||||
87: 75(ptr) AccessChain 74(tin_pos) 34
|
||||
87: 75(ptr) AccessChain 74(tin.pos) 34
|
||||
88: 7(fvec4) Load 87
|
||||
89: 32(ptr) AccessChain 71(tin) 34 26
|
||||
Store 89 88
|
||||
@@ -530,7 +530,7 @@ output primitive = triangle_strip
|
||||
91: 8(fvec2) Load 90
|
||||
92: 38(ptr) AccessChain 71(tin) 34 34
|
||||
Store 92 91
|
||||
93: 75(ptr) AccessChain 74(tin_pos) 44
|
||||
93: 75(ptr) AccessChain 74(tin.pos) 44
|
||||
94: 7(fvec4) Load 93
|
||||
95: 32(ptr) AccessChain 71(tin) 44 26
|
||||
Store 95 94
|
||||
@@ -562,7 +562,7 @@ output primitive = triangle_strip
|
||||
Store 46 44
|
||||
49: 32(ptr) AccessChain 25(o) 26 26
|
||||
50: 7(fvec4) Load 49
|
||||
Store 48(ts_psIn_pos) 50
|
||||
Store 48(ts.psIn.pos) 50
|
||||
56: 38(ptr) AccessChain 25(o) 26 34
|
||||
57: 8(fvec2) Load 56
|
||||
59: 58(ptr) AccessChain 55(ts) 26 26
|
||||
|
||||
Reference in New Issue
Block a user