HLSL: Wrap the entry-point; need to write 'in' args, and support 'inout' args.

This needs some render testing, but is destined to be part of master.

This also leads to a variety of other simplifications.
 - IO are global symbols, so only need one list of linkage nodes (deferred)
 - no longer need parse-context-wide 'inEntryPoint' state, entry-point is localized
 - several parts of splitting/flattening are now localized
This commit is contained in:
John Kessenich
2017-01-19 15:41:47 -07:00
parent 18adbdbbb8
commit 02467d8d94
171 changed files with 37604 additions and 32679 deletions

View File

@@ -2,7 +2,7 @@ hlsl.samplebias.basic.dx10.frag
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:28 Function Definition: main( (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Function Definition: @main( (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Function Parameters:
0:? Sequence
0:31 Sequence
@@ -169,24 +169,28 @@ gl_FragCoord origin is upper left
0:48 1 (const int)
0:48 Constant:
0:48 1.000000
0:50 Sequence
0:50 Sequence
0:50 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:50 Color: direct index for structure (temp 4-component vector of float)
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:50 Constant:
0:50 0 (const int)
0:50 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:50 Depth: direct index for structure (temp float)
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:50 Constant:
0:50 1 (const int)
0:50 Branch: Return
0:50 Branch: Return with expression
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Function Definition: main( (temp void)
0:28 Function Parameters:
0:? Sequence
0:28 Sequence
0:28 move second child to first child (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 'flattenTemp' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Function Call: @main( (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:28 Color: direct index for structure (temp 4-component vector of float)
0:28 'flattenTemp' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Constant:
0:28 0 (const int)
0:28 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:28 Depth: direct index for structure (temp float)
0:28 'flattenTemp' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Constant:
0:28 1 (const int)
0:? Linker Objects
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:? 'Depth' (out float FragDepth)
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? 'g_tTex1df4a' (layout(binding=1 ) uniform texture1D)
0:? 'g_tTex1df4' (layout(binding=0 ) uniform texture1D)
@@ -201,6 +205,8 @@ gl_FragCoord origin is upper left
0:? 'g_tTexcdf4' (uniform textureCube)
0:? 'g_tTexcdi4' (uniform itextureCube)
0:? 'g_tTexcdu4' (uniform utextureCube)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:? 'Depth' (out float FragDepth)
Linked fragment stage:
@@ -209,7 +215,7 @@ Linked fragment stage:
Shader version: 450
gl_FragCoord origin is upper left
0:? Sequence
0:28 Function Definition: main( (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Function Definition: @main( (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Function Parameters:
0:? Sequence
0:31 Sequence
@@ -376,24 +382,28 @@ gl_FragCoord origin is upper left
0:48 1 (const int)
0:48 Constant:
0:48 1.000000
0:50 Sequence
0:50 Sequence
0:50 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:50 Color: direct index for structure (temp 4-component vector of float)
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:50 Constant:
0:50 0 (const int)
0:50 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:50 Depth: direct index for structure (temp float)
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:50 Constant:
0:50 1 (const int)
0:50 Branch: Return
0:50 Branch: Return with expression
0:50 'psout' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Function Definition: main( (temp void)
0:28 Function Parameters:
0:? Sequence
0:28 Sequence
0:28 move second child to first child (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 'flattenTemp' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Function Call: @main( (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 move second child to first child (temp 4-component vector of float)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:28 Color: direct index for structure (temp 4-component vector of float)
0:28 'flattenTemp' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Constant:
0:28 0 (const int)
0:28 move second child to first child (temp float)
0:? 'Depth' (out float FragDepth)
0:28 Depth: direct index for structure (temp float)
0:28 'flattenTemp' (temp structure{temp 4-component vector of float Color, temp float Depth})
0:28 Constant:
0:28 1 (const int)
0:? Linker Objects
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:? 'Depth' (out float FragDepth)
0:? 'g_sSamp' (layout(binding=0 ) uniform sampler)
0:? 'g_tTex1df4a' (layout(binding=1 ) uniform texture1D)
0:? 'g_tTex1df4' (layout(binding=0 ) uniform texture1D)
@@ -408,244 +418,257 @@ gl_FragCoord origin is upper left
0:? 'g_tTexcdf4' (uniform textureCube)
0:? 'g_tTexcdi4' (uniform itextureCube)
0:? 'g_tTexcdu4' (uniform utextureCube)
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
0:? 'Depth' (out float FragDepth)
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 163
// Id's are bound by 170
Capability Shader
Capability Sampled1D
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 154 158
EntryPoint Fragment 4 "main" 162 166
ExecutionMode 4 OriginUpperLeft
Name 4 "main"
Name 9 "txval10"
Name 12 "g_tTex1df4"
Name 16 "g_sSamp"
Name 26 "txval11"
Name 29 "g_tTex1di4"
Name 39 "txval12"
Name 42 "g_tTex1du4"
Name 49 "txval20"
Name 52 "g_tTex2df4"
Name 60 "txval21"
Name 63 "g_tTex2di4"
Name 71 "txval22"
Name 74 "g_tTex2du4"
Name 82 "txval30"
Name 85 "g_tTex3df4"
Name 93 "txval31"
Name 96 "g_tTex3di4"
Name 103 "txval32"
Name 106 "g_tTex3du4"
Name 116 "txval40"
Name 119 "g_tTexcdf4"
Name 125 "txval41"
Name 128 "g_tTexcdi4"
Name 134 "txval42"
Name 137 "g_tTexcdu4"
Name 143 "PS_OUTPUT"
MemberName 143(PS_OUTPUT) 0 "Color"
MemberName 143(PS_OUTPUT) 1 "Depth"
Name 145 "psout"
Name 154 "Color"
Name 158 "Depth"
Name 162 "g_tTex1df4a"
Decorate 12(g_tTex1df4) DescriptorSet 0
Decorate 12(g_tTex1df4) Binding 0
Decorate 16(g_sSamp) DescriptorSet 0
Decorate 16(g_sSamp) Binding 0
Decorate 29(g_tTex1di4) DescriptorSet 0
Decorate 42(g_tTex1du4) DescriptorSet 0
Decorate 52(g_tTex2df4) DescriptorSet 0
Decorate 63(g_tTex2di4) DescriptorSet 0
Decorate 74(g_tTex2du4) DescriptorSet 0
Decorate 85(g_tTex3df4) DescriptorSet 0
Decorate 96(g_tTex3di4) DescriptorSet 0
Decorate 106(g_tTex3du4) DescriptorSet 0
Decorate 119(g_tTexcdf4) DescriptorSet 0
Decorate 128(g_tTexcdi4) DescriptorSet 0
Decorate 137(g_tTexcdu4) DescriptorSet 0
Decorate 154(Color) Location 0
Decorate 158(Depth) BuiltIn FragDepth
Decorate 162(g_tTex1df4a) DescriptorSet 0
Decorate 162(g_tTex1df4a) Binding 1
Name 8 "PS_OUTPUT"
MemberName 8(PS_OUTPUT) 0 "Color"
MemberName 8(PS_OUTPUT) 1 "Depth"
Name 10 "@main("
Name 13 "txval10"
Name 16 "g_tTex1df4"
Name 20 "g_sSamp"
Name 30 "txval11"
Name 33 "g_tTex1di4"
Name 43 "txval12"
Name 46 "g_tTex1du4"
Name 53 "txval20"
Name 56 "g_tTex2df4"
Name 64 "txval21"
Name 67 "g_tTex2di4"
Name 75 "txval22"
Name 78 "g_tTex2du4"
Name 86 "txval30"
Name 89 "g_tTex3df4"
Name 97 "txval31"
Name 100 "g_tTex3di4"
Name 107 "txval32"
Name 110 "g_tTex3du4"
Name 120 "txval40"
Name 123 "g_tTexcdf4"
Name 129 "txval41"
Name 132 "g_tTexcdi4"
Name 138 "txval42"
Name 141 "g_tTexcdu4"
Name 148 "psout"
Name 159 "flattenTemp"
Name 162 "Color"
Name 166 "Depth"
Name 169 "g_tTex1df4a"
Decorate 16(g_tTex1df4) DescriptorSet 0
Decorate 16(g_tTex1df4) Binding 0
Decorate 20(g_sSamp) DescriptorSet 0
Decorate 20(g_sSamp) Binding 0
Decorate 33(g_tTex1di4) DescriptorSet 0
Decorate 46(g_tTex1du4) DescriptorSet 0
Decorate 56(g_tTex2df4) DescriptorSet 0
Decorate 67(g_tTex2di4) DescriptorSet 0
Decorate 78(g_tTex2du4) DescriptorSet 0
Decorate 89(g_tTex3df4) DescriptorSet 0
Decorate 100(g_tTex3di4) DescriptorSet 0
Decorate 110(g_tTex3du4) DescriptorSet 0
Decorate 123(g_tTexcdf4) DescriptorSet 0
Decorate 132(g_tTexcdi4) DescriptorSet 0
Decorate 141(g_tTexcdu4) DescriptorSet 0
Decorate 162(Color) Location 0
Decorate 166(Depth) BuiltIn FragDepth
Decorate 169(g_tTex1df4a) DescriptorSet 0
Decorate 169(g_tTex1df4a) Binding 1
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
7: TypeVector 6(float) 4
8: TypePointer Function 7(fvec4)
10: TypeImage 6(float) 1D sampled format:Unknown
11: TypePointer UniformConstant 10
12(g_tTex1df4): 11(ptr) Variable UniformConstant
14: TypeSampler
8(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
9: TypeFunction 8(PS_OUTPUT)
12: TypePointer Function 7(fvec4)
14: TypeImage 6(float) 1D sampled format:Unknown
15: TypePointer UniformConstant 14
16(g_sSamp): 15(ptr) Variable UniformConstant
18: TypeSampledImage 10
20: 6(float) Constant 1036831949
21: 6(float) Constant 1056964608
23: TypeInt 32 1
24: TypeVector 23(int) 4
25: TypePointer Function 24(ivec4)
27: TypeImage 23(int) 1D sampled format:Unknown
28: TypePointer UniformConstant 27
29(g_tTex1di4): 28(ptr) Variable UniformConstant
32: TypeSampledImage 27
34: 6(float) Constant 1045220557
36: TypeInt 32 0
37: TypeVector 36(int) 4
38: TypePointer Function 37(ivec4)
40: TypeImage 36(int) 1D sampled format:Unknown
41: TypePointer UniformConstant 40
42(g_tTex1du4): 41(ptr) Variable UniformConstant
45: TypeSampledImage 40
47: 6(float) Constant 1050253722
50: TypeImage 6(float) 2D sampled format:Unknown
51: TypePointer UniformConstant 50
52(g_tTex2df4): 51(ptr) Variable UniformConstant
55: TypeSampledImage 50
57: TypeVector 6(float) 2
58: 57(fvec2) ConstantComposite 20 34
61: TypeImage 23(int) 2D sampled format:Unknown
62: TypePointer UniformConstant 61
63(g_tTex2di4): 62(ptr) Variable UniformConstant
66: TypeSampledImage 61
68: 6(float) Constant 1053609165
69: 57(fvec2) ConstantComposite 47 68
72: TypeImage 36(int) 2D sampled format:Unknown
73: TypePointer UniformConstant 72
74(g_tTex2du4): 73(ptr) Variable UniformConstant
77: TypeSampledImage 72
79: 6(float) Constant 1058642330
80: 57(fvec2) ConstantComposite 21 79
83: TypeImage 6(float) 3D sampled format:Unknown
84: TypePointer UniformConstant 83
85(g_tTex3df4): 84(ptr) Variable UniformConstant
88: TypeSampledImage 83
90: TypeVector 6(float) 3
91: 90(fvec3) ConstantComposite 20 34 47
94: TypeImage 23(int) 3D sampled format:Unknown
95: TypePointer UniformConstant 94
96(g_tTex3di4): 95(ptr) Variable UniformConstant
99: TypeSampledImage 94
101: 90(fvec3) ConstantComposite 68 21 79
104: TypeImage 36(int) 3D sampled format:Unknown
105: TypePointer UniformConstant 104
106(g_tTex3du4): 105(ptr) Variable UniformConstant
109: TypeSampledImage 104
111: 6(float) Constant 1060320051
112: 6(float) Constant 1061997773
113: 6(float) Constant 1063675494
114: 90(fvec3) ConstantComposite 111 112 113
117: TypeImage 6(float) Cube sampled format:Unknown
118: TypePointer UniformConstant 117
119(g_tTexcdf4): 118(ptr) Variable UniformConstant
122: TypeSampledImage 117
126: TypeImage 23(int) Cube sampled format:Unknown
127: TypePointer UniformConstant 126
128(g_tTexcdi4): 127(ptr) Variable UniformConstant
131: TypeSampledImage 126
135: TypeImage 36(int) Cube sampled format:Unknown
136: TypePointer UniformConstant 135
137(g_tTexcdu4): 136(ptr) Variable UniformConstant
140: TypeSampledImage 135
143(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
144: TypePointer Function 143(PS_OUTPUT)
146: 23(int) Constant 0
147: 6(float) Constant 1065353216
148: 7(fvec4) ConstantComposite 147 147 147 147
150: 23(int) Constant 1
151: TypePointer Function 6(float)
153: TypePointer Output 7(fvec4)
154(Color): 153(ptr) Variable Output
157: TypePointer Output 6(float)
158(Depth): 157(ptr) Variable Output
162(g_tTex1df4a): 11(ptr) Variable UniformConstant
16(g_tTex1df4): 15(ptr) Variable UniformConstant
18: TypeSampler
19: TypePointer UniformConstant 18
20(g_sSamp): 19(ptr) Variable UniformConstant
22: TypeSampledImage 14
24: 6(float) Constant 1036831949
25: 6(float) Constant 1056964608
27: TypeInt 32 1
28: TypeVector 27(int) 4
29: TypePointer Function 28(ivec4)
31: TypeImage 27(int) 1D sampled format:Unknown
32: TypePointer UniformConstant 31
33(g_tTex1di4): 32(ptr) Variable UniformConstant
36: TypeSampledImage 31
38: 6(float) Constant 1045220557
40: TypeInt 32 0
41: TypeVector 40(int) 4
42: TypePointer Function 41(ivec4)
44: TypeImage 40(int) 1D sampled format:Unknown
45: TypePointer UniformConstant 44
46(g_tTex1du4): 45(ptr) Variable UniformConstant
49: TypeSampledImage 44
51: 6(float) Constant 1050253722
54: TypeImage 6(float) 2D sampled format:Unknown
55: TypePointer UniformConstant 54
56(g_tTex2df4): 55(ptr) Variable UniformConstant
59: TypeSampledImage 54
61: TypeVector 6(float) 2
62: 61(fvec2) ConstantComposite 24 38
65: TypeImage 27(int) 2D sampled format:Unknown
66: TypePointer UniformConstant 65
67(g_tTex2di4): 66(ptr) Variable UniformConstant
70: TypeSampledImage 65
72: 6(float) Constant 1053609165
73: 61(fvec2) ConstantComposite 51 72
76: TypeImage 40(int) 2D sampled format:Unknown
77: TypePointer UniformConstant 76
78(g_tTex2du4): 77(ptr) Variable UniformConstant
81: TypeSampledImage 76
83: 6(float) Constant 1058642330
84: 61(fvec2) ConstantComposite 25 83
87: TypeImage 6(float) 3D sampled format:Unknown
88: TypePointer UniformConstant 87
89(g_tTex3df4): 88(ptr) Variable UniformConstant
92: TypeSampledImage 87
94: TypeVector 6(float) 3
95: 94(fvec3) ConstantComposite 24 38 51
98: TypeImage 27(int) 3D sampled format:Unknown
99: TypePointer UniformConstant 98
100(g_tTex3di4): 99(ptr) Variable UniformConstant
103: TypeSampledImage 98
105: 94(fvec3) ConstantComposite 72 25 83
108: TypeImage 40(int) 3D sampled format:Unknown
109: TypePointer UniformConstant 108
110(g_tTex3du4): 109(ptr) Variable UniformConstant
113: TypeSampledImage 108
115: 6(float) Constant 1060320051
116: 6(float) Constant 1061997773
117: 6(float) Constant 1063675494
118: 94(fvec3) ConstantComposite 115 116 117
121: TypeImage 6(float) Cube sampled format:Unknown
122: TypePointer UniformConstant 121
123(g_tTexcdf4): 122(ptr) Variable UniformConstant
126: TypeSampledImage 121
130: TypeImage 27(int) Cube sampled format:Unknown
131: TypePointer UniformConstant 130
132(g_tTexcdi4): 131(ptr) Variable UniformConstant
135: TypeSampledImage 130
139: TypeImage 40(int) Cube sampled format:Unknown
140: TypePointer UniformConstant 139
141(g_tTexcdu4): 140(ptr) Variable UniformConstant
144: TypeSampledImage 139
147: TypePointer Function 8(PS_OUTPUT)
149: 27(int) Constant 0
150: 6(float) Constant 1065353216
151: 7(fvec4) ConstantComposite 150 150 150 150
153: 27(int) Constant 1
154: TypePointer Function 6(float)
161: TypePointer Output 7(fvec4)
162(Color): 161(ptr) Variable Output
165: TypePointer Output 6(float)
166(Depth): 165(ptr) Variable Output
169(g_tTex1df4a): 15(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
9(txval10): 8(ptr) Variable Function
26(txval11): 25(ptr) Variable Function
39(txval12): 38(ptr) Variable Function
49(txval20): 8(ptr) Variable Function
60(txval21): 25(ptr) Variable Function
71(txval22): 38(ptr) Variable Function
82(txval30): 8(ptr) Variable Function
93(txval31): 25(ptr) Variable Function
103(txval32): 38(ptr) Variable Function
116(txval40): 8(ptr) Variable Function
125(txval41): 25(ptr) Variable Function
134(txval42): 38(ptr) Variable Function
145(psout): 144(ptr) Variable Function
13: 10 Load 12(g_tTex1df4)
17: 14 Load 16(g_sSamp)
19: 18 SampledImage 13 17
22: 7(fvec4) ImageSampleImplicitLod 19 20 Bias 21
Store 9(txval10) 22
30: 27 Load 29(g_tTex1di4)
31: 14 Load 16(g_sSamp)
33: 32 SampledImage 30 31
35: 24(ivec4) ImageSampleImplicitLod 33 34 Bias 21
Store 26(txval11) 35
43: 40 Load 42(g_tTex1du4)
44: 14 Load 16(g_sSamp)
46: 45 SampledImage 43 44
48: 37(ivec4) ImageSampleImplicitLod 46 47 Bias 21
Store 39(txval12) 48
53: 50 Load 52(g_tTex2df4)
54: 14 Load 16(g_sSamp)
56: 55 SampledImage 53 54
59: 7(fvec4) ImageSampleImplicitLod 56 58 Bias 21
Store 49(txval20) 59
64: 61 Load 63(g_tTex2di4)
65: 14 Load 16(g_sSamp)
67: 66 SampledImage 64 65
70: 24(ivec4) ImageSampleImplicitLod 67 69 Bias 21
Store 60(txval21) 70
75: 72 Load 74(g_tTex2du4)
76: 14 Load 16(g_sSamp)
78: 77 SampledImage 75 76
81: 37(ivec4) ImageSampleImplicitLod 78 80 Bias 21
Store 71(txval22) 81
86: 83 Load 85(g_tTex3df4)
87: 14 Load 16(g_sSamp)
89: 88 SampledImage 86 87
92: 7(fvec4) ImageSampleImplicitLod 89 91 Bias 21
Store 82(txval30) 92
97: 94 Load 96(g_tTex3di4)
98: 14 Load 16(g_sSamp)
100: 99 SampledImage 97 98
102: 24(ivec4) ImageSampleImplicitLod 100 101 Bias 21
Store 93(txval31) 102
107: 104 Load 106(g_tTex3du4)
108: 14 Load 16(g_sSamp)
110: 109 SampledImage 107 108
115: 37(ivec4) ImageSampleImplicitLod 110 114 Bias 21
Store 103(txval32) 115
120: 117 Load 119(g_tTexcdf4)
121: 14 Load 16(g_sSamp)
123: 122 SampledImage 120 121
124: 7(fvec4) ImageSampleImplicitLod 123 91 Bias 21
Store 116(txval40) 124
129: 126 Load 128(g_tTexcdi4)
130: 14 Load 16(g_sSamp)
132: 131 SampledImage 129 130
133: 24(ivec4) ImageSampleImplicitLod 132 101 Bias 21
Store 125(txval41) 133
138: 135 Load 137(g_tTexcdu4)
139: 14 Load 16(g_sSamp)
141: 140 SampledImage 138 139
142: 37(ivec4) ImageSampleImplicitLod 141 114 Bias 21
Store 134(txval42) 142
149: 8(ptr) AccessChain 145(psout) 146
Store 149 148
152: 151(ptr) AccessChain 145(psout) 150
Store 152 147
155: 8(ptr) AccessChain 145(psout) 146
156: 7(fvec4) Load 155
Store 154(Color) 156
159: 151(ptr) AccessChain 145(psout) 150
160: 6(float) Load 159
Store 158(Depth) 160
159(flattenTemp): 147(ptr) Variable Function
160:8(PS_OUTPUT) FunctionCall 10(@main()
Store 159(flattenTemp) 160
163: 12(ptr) AccessChain 159(flattenTemp) 149
164: 7(fvec4) Load 163
Store 162(Color) 164
167: 154(ptr) AccessChain 159(flattenTemp) 153
168: 6(float) Load 167
Store 166(Depth) 168
Return
FunctionEnd
10(@main():8(PS_OUTPUT) Function None 9
11: Label
13(txval10): 12(ptr) Variable Function
30(txval11): 29(ptr) Variable Function
43(txval12): 42(ptr) Variable Function
53(txval20): 12(ptr) Variable Function
64(txval21): 29(ptr) Variable Function
75(txval22): 42(ptr) Variable Function
86(txval30): 12(ptr) Variable Function
97(txval31): 29(ptr) Variable Function
107(txval32): 42(ptr) Variable Function
120(txval40): 12(ptr) Variable Function
129(txval41): 29(ptr) Variable Function
138(txval42): 42(ptr) Variable Function
148(psout): 147(ptr) Variable Function
17: 14 Load 16(g_tTex1df4)
21: 18 Load 20(g_sSamp)
23: 22 SampledImage 17 21
26: 7(fvec4) ImageSampleImplicitLod 23 24 Bias 25
Store 13(txval10) 26
34: 31 Load 33(g_tTex1di4)
35: 18 Load 20(g_sSamp)
37: 36 SampledImage 34 35
39: 28(ivec4) ImageSampleImplicitLod 37 38 Bias 25
Store 30(txval11) 39
47: 44 Load 46(g_tTex1du4)
48: 18 Load 20(g_sSamp)
50: 49 SampledImage 47 48
52: 41(ivec4) ImageSampleImplicitLod 50 51 Bias 25
Store 43(txval12) 52
57: 54 Load 56(g_tTex2df4)
58: 18 Load 20(g_sSamp)
60: 59 SampledImage 57 58
63: 7(fvec4) ImageSampleImplicitLod 60 62 Bias 25
Store 53(txval20) 63
68: 65 Load 67(g_tTex2di4)
69: 18 Load 20(g_sSamp)
71: 70 SampledImage 68 69
74: 28(ivec4) ImageSampleImplicitLod 71 73 Bias 25
Store 64(txval21) 74
79: 76 Load 78(g_tTex2du4)
80: 18 Load 20(g_sSamp)
82: 81 SampledImage 79 80
85: 41(ivec4) ImageSampleImplicitLod 82 84 Bias 25
Store 75(txval22) 85
90: 87 Load 89(g_tTex3df4)
91: 18 Load 20(g_sSamp)
93: 92 SampledImage 90 91
96: 7(fvec4) ImageSampleImplicitLod 93 95 Bias 25
Store 86(txval30) 96
101: 98 Load 100(g_tTex3di4)
102: 18 Load 20(g_sSamp)
104: 103 SampledImage 101 102
106: 28(ivec4) ImageSampleImplicitLod 104 105 Bias 25
Store 97(txval31) 106
111: 108 Load 110(g_tTex3du4)
112: 18 Load 20(g_sSamp)
114: 113 SampledImage 111 112
119: 41(ivec4) ImageSampleImplicitLod 114 118 Bias 25
Store 107(txval32) 119
124: 121 Load 123(g_tTexcdf4)
125: 18 Load 20(g_sSamp)
127: 126 SampledImage 124 125
128: 7(fvec4) ImageSampleImplicitLod 127 95 Bias 25
Store 120(txval40) 128
133: 130 Load 132(g_tTexcdi4)
134: 18 Load 20(g_sSamp)
136: 135 SampledImage 133 134
137: 28(ivec4) ImageSampleImplicitLod 136 105 Bias 25
Store 129(txval41) 137
142: 139 Load 141(g_tTexcdu4)
143: 18 Load 20(g_sSamp)
145: 144 SampledImage 142 143
146: 41(ivec4) ImageSampleImplicitLod 145 118 Bias 25
Store 138(txval42) 146
152: 12(ptr) AccessChain 148(psout) 149
Store 152 151
155: 154(ptr) AccessChain 148(psout) 153
Store 155 150
156:8(PS_OUTPUT) Load 148(psout)
ReturnValue 156
FunctionEnd