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.samplegrad.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
@@ -223,24 +223,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)
@@ -255,6 +259,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:
@@ -263,7 +269,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
@@ -484,24 +490,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)
@@ -516,249 +526,262 @@ 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 168
// Id's are bound by 175
Capability Shader
Capability Sampled1D
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 159 163
EntryPoint Fragment 4 "main" 167 171
ExecutionMode 4 OriginUpperLeft
Name 4 "main"
Name 9 "txval10"
Name 12 "g_tTex1df4"
Name 16 "g_sSamp"
Name 27 "txval11"
Name 30 "g_tTex1di4"
Name 40 "txval12"
Name 43 "g_tTex1du4"
Name 50 "txval20"
Name 53 "g_tTex2df4"
Name 62 "txval21"
Name 65 "g_tTex2di4"
Name 73 "txval22"
Name 76 "g_tTex2du4"
Name 85 "txval30"
Name 88 "g_tTex3df4"
Name 98 "txval31"
Name 101 "g_tTex3di4"
Name 108 "txval32"
Name 111 "g_tTex3du4"
Name 121 "txval40"
Name 124 "g_tTexcdf4"
Name 130 "txval41"
Name 133 "g_tTexcdi4"
Name 139 "txval42"
Name 142 "g_tTexcdu4"
Name 148 "PS_OUTPUT"
MemberName 148(PS_OUTPUT) 0 "Color"
MemberName 148(PS_OUTPUT) 1 "Depth"
Name 150 "psout"
Name 159 "Color"
Name 163 "Depth"
Name 167 "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 30(g_tTex1di4) DescriptorSet 0
Decorate 43(g_tTex1du4) DescriptorSet 0
Decorate 53(g_tTex2df4) DescriptorSet 0
Decorate 65(g_tTex2di4) DescriptorSet 0
Decorate 76(g_tTex2du4) DescriptorSet 0
Decorate 88(g_tTex3df4) DescriptorSet 0
Decorate 101(g_tTex3di4) DescriptorSet 0
Decorate 111(g_tTex3du4) DescriptorSet 0
Decorate 124(g_tTexcdf4) DescriptorSet 0
Decorate 133(g_tTexcdi4) DescriptorSet 0
Decorate 142(g_tTexcdu4) DescriptorSet 0
Decorate 159(Color) Location 0
Decorate 163(Depth) BuiltIn FragDepth
Decorate 167(g_tTex1df4a) DescriptorSet 0
Decorate 167(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 31 "txval11"
Name 34 "g_tTex1di4"
Name 44 "txval12"
Name 47 "g_tTex1du4"
Name 54 "txval20"
Name 57 "g_tTex2df4"
Name 66 "txval21"
Name 69 "g_tTex2di4"
Name 77 "txval22"
Name 80 "g_tTex2du4"
Name 89 "txval30"
Name 92 "g_tTex3df4"
Name 102 "txval31"
Name 105 "g_tTex3di4"
Name 112 "txval32"
Name 115 "g_tTex3du4"
Name 125 "txval40"
Name 128 "g_tTexcdf4"
Name 134 "txval41"
Name 137 "g_tTexcdi4"
Name 143 "txval42"
Name 146 "g_tTexcdu4"
Name 153 "psout"
Name 164 "flattenTemp"
Name 167 "Color"
Name 171 "Depth"
Name 174 "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 34(g_tTex1di4) DescriptorSet 0
Decorate 47(g_tTex1du4) DescriptorSet 0
Decorate 57(g_tTex2df4) DescriptorSet 0
Decorate 69(g_tTex2di4) DescriptorSet 0
Decorate 80(g_tTex2du4) DescriptorSet 0
Decorate 92(g_tTex3df4) DescriptorSet 0
Decorate 105(g_tTex3di4) DescriptorSet 0
Decorate 115(g_tTex3du4) DescriptorSet 0
Decorate 128(g_tTexcdf4) DescriptorSet 0
Decorate 137(g_tTexcdi4) DescriptorSet 0
Decorate 146(g_tTexcdu4) DescriptorSet 0
Decorate 167(Color) Location 0
Decorate 171(Depth) BuiltIn FragDepth
Decorate 174(g_tTex1df4a) DescriptorSet 0
Decorate 174(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 1066192077
22: 6(float) Constant 1067030938
24: TypeInt 32 1
25: TypeVector 24(int) 4
26: TypePointer Function 25(ivec4)
28: TypeImage 24(int) 1D sampled format:Unknown
29: TypePointer UniformConstant 28
30(g_tTex1di4): 29(ptr) Variable UniformConstant
33: TypeSampledImage 28
35: 6(float) Constant 1045220557
37: TypeInt 32 0
38: TypeVector 37(int) 4
39: TypePointer Function 38(ivec4)
41: TypeImage 37(int) 1D sampled format:Unknown
42: TypePointer UniformConstant 41
43(g_tTex1du4): 42(ptr) Variable UniformConstant
46: TypeSampledImage 41
48: 6(float) Constant 1050253722
51: TypeImage 6(float) 2D sampled format:Unknown
52: TypePointer UniformConstant 51
53(g_tTex2df4): 52(ptr) Variable UniformConstant
56: TypeSampledImage 51
58: TypeVector 6(float) 2
59: 58(fvec2) ConstantComposite 20 35
60: 58(fvec2) ConstantComposite 21 22
63: TypeImage 24(int) 2D sampled format:Unknown
64: TypePointer UniformConstant 63
65(g_tTex2di4): 64(ptr) Variable UniformConstant
68: TypeSampledImage 63
70: 6(float) Constant 1053609165
71: 58(fvec2) ConstantComposite 48 70
74: TypeImage 37(int) 2D sampled format:Unknown
75: TypePointer UniformConstant 74
76(g_tTex2du4): 75(ptr) Variable UniformConstant
79: TypeSampledImage 74
81: 6(float) Constant 1056964608
82: 6(float) Constant 1058642330
83: 58(fvec2) ConstantComposite 81 82
86: TypeImage 6(float) 3D sampled format:Unknown
87: TypePointer UniformConstant 86
88(g_tTex3df4): 87(ptr) Variable UniformConstant
91: TypeSampledImage 86
93: TypeVector 6(float) 3
94: 93(fvec3) ConstantComposite 20 35 48
95: 6(float) Constant 1067869798
96: 93(fvec3) ConstantComposite 21 22 95
99: TypeImage 24(int) 3D sampled format:Unknown
100: TypePointer UniformConstant 99
101(g_tTex3di4): 100(ptr) Variable UniformConstant
104: TypeSampledImage 99
106: 93(fvec3) ConstantComposite 70 81 82
109: TypeImage 37(int) 3D sampled format:Unknown
110: TypePointer UniformConstant 109
111(g_tTex3du4): 110(ptr) Variable UniformConstant
114: TypeSampledImage 109
116: 6(float) Constant 1060320051
117: 6(float) Constant 1061997773
118: 6(float) Constant 1063675494
119: 93(fvec3) ConstantComposite 116 117 118
122: TypeImage 6(float) Cube sampled format:Unknown
123: TypePointer UniformConstant 122
124(g_tTexcdf4): 123(ptr) Variable UniformConstant
127: TypeSampledImage 122
131: TypeImage 24(int) Cube sampled format:Unknown
132: TypePointer UniformConstant 131
133(g_tTexcdi4): 132(ptr) Variable UniformConstant
136: TypeSampledImage 131
140: TypeImage 37(int) Cube sampled format:Unknown
141: TypePointer UniformConstant 140
142(g_tTexcdu4): 141(ptr) Variable UniformConstant
145: TypeSampledImage 140
148(PS_OUTPUT): TypeStruct 7(fvec4) 6(float)
149: TypePointer Function 148(PS_OUTPUT)
151: 24(int) Constant 0
152: 6(float) Constant 1065353216
153: 7(fvec4) ConstantComposite 152 152 152 152
155: 24(int) Constant 1
156: TypePointer Function 6(float)
158: TypePointer Output 7(fvec4)
159(Color): 158(ptr) Variable Output
162: TypePointer Output 6(float)
163(Depth): 162(ptr) Variable Output
167(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 1066192077
26: 6(float) Constant 1067030938
28: TypeInt 32 1
29: TypeVector 28(int) 4
30: TypePointer Function 29(ivec4)
32: TypeImage 28(int) 1D sampled format:Unknown
33: TypePointer UniformConstant 32
34(g_tTex1di4): 33(ptr) Variable UniformConstant
37: TypeSampledImage 32
39: 6(float) Constant 1045220557
41: TypeInt 32 0
42: TypeVector 41(int) 4
43: TypePointer Function 42(ivec4)
45: TypeImage 41(int) 1D sampled format:Unknown
46: TypePointer UniformConstant 45
47(g_tTex1du4): 46(ptr) Variable UniformConstant
50: TypeSampledImage 45
52: 6(float) Constant 1050253722
55: TypeImage 6(float) 2D sampled format:Unknown
56: TypePointer UniformConstant 55
57(g_tTex2df4): 56(ptr) Variable UniformConstant
60: TypeSampledImage 55
62: TypeVector 6(float) 2
63: 62(fvec2) ConstantComposite 24 39
64: 62(fvec2) ConstantComposite 25 26
67: TypeImage 28(int) 2D sampled format:Unknown
68: TypePointer UniformConstant 67
69(g_tTex2di4): 68(ptr) Variable UniformConstant
72: TypeSampledImage 67
74: 6(float) Constant 1053609165
75: 62(fvec2) ConstantComposite 52 74
78: TypeImage 41(int) 2D sampled format:Unknown
79: TypePointer UniformConstant 78
80(g_tTex2du4): 79(ptr) Variable UniformConstant
83: TypeSampledImage 78
85: 6(float) Constant 1056964608
86: 6(float) Constant 1058642330
87: 62(fvec2) ConstantComposite 85 86
90: TypeImage 6(float) 3D sampled format:Unknown
91: TypePointer UniformConstant 90
92(g_tTex3df4): 91(ptr) Variable UniformConstant
95: TypeSampledImage 90
97: TypeVector 6(float) 3
98: 97(fvec3) ConstantComposite 24 39 52
99: 6(float) Constant 1067869798
100: 97(fvec3) ConstantComposite 25 26 99
103: TypeImage 28(int) 3D sampled format:Unknown
104: TypePointer UniformConstant 103
105(g_tTex3di4): 104(ptr) Variable UniformConstant
108: TypeSampledImage 103
110: 97(fvec3) ConstantComposite 74 85 86
113: TypeImage 41(int) 3D sampled format:Unknown
114: TypePointer UniformConstant 113
115(g_tTex3du4): 114(ptr) Variable UniformConstant
118: TypeSampledImage 113
120: 6(float) Constant 1060320051
121: 6(float) Constant 1061997773
122: 6(float) Constant 1063675494
123: 97(fvec3) ConstantComposite 120 121 122
126: TypeImage 6(float) Cube sampled format:Unknown
127: TypePointer UniformConstant 126
128(g_tTexcdf4): 127(ptr) Variable UniformConstant
131: TypeSampledImage 126
135: TypeImage 28(int) Cube sampled format:Unknown
136: TypePointer UniformConstant 135
137(g_tTexcdi4): 136(ptr) Variable UniformConstant
140: TypeSampledImage 135
144: TypeImage 41(int) Cube sampled format:Unknown
145: TypePointer UniformConstant 144
146(g_tTexcdu4): 145(ptr) Variable UniformConstant
149: TypeSampledImage 144
152: TypePointer Function 8(PS_OUTPUT)
154: 28(int) Constant 0
155: 6(float) Constant 1065353216
156: 7(fvec4) ConstantComposite 155 155 155 155
158: 28(int) Constant 1
159: TypePointer Function 6(float)
166: TypePointer Output 7(fvec4)
167(Color): 166(ptr) Variable Output
170: TypePointer Output 6(float)
171(Depth): 170(ptr) Variable Output
174(g_tTex1df4a): 15(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
9(txval10): 8(ptr) Variable Function
27(txval11): 26(ptr) Variable Function
40(txval12): 39(ptr) Variable Function
50(txval20): 8(ptr) Variable Function
62(txval21): 26(ptr) Variable Function
73(txval22): 39(ptr) Variable Function
85(txval30): 8(ptr) Variable Function
98(txval31): 26(ptr) Variable Function
108(txval32): 39(ptr) Variable Function
121(txval40): 8(ptr) Variable Function
130(txval41): 26(ptr) Variable Function
139(txval42): 39(ptr) Variable Function
150(psout): 149(ptr) Variable Function
13: 10 Load 12(g_tTex1df4)
17: 14 Load 16(g_sSamp)
19: 18 SampledImage 13 17
23: 7(fvec4) ImageSampleExplicitLod 19 20 Grad 21 22
Store 9(txval10) 23
31: 28 Load 30(g_tTex1di4)
32: 14 Load 16(g_sSamp)
34: 33 SampledImage 31 32
36: 25(ivec4) ImageSampleExplicitLod 34 35 Grad 21 22
Store 27(txval11) 36
44: 41 Load 43(g_tTex1du4)
45: 14 Load 16(g_sSamp)
47: 46 SampledImage 44 45
49: 38(ivec4) ImageSampleExplicitLod 47 48 Grad 21 22
Store 40(txval12) 49
54: 51 Load 53(g_tTex2df4)
55: 14 Load 16(g_sSamp)
57: 56 SampledImage 54 55
61: 7(fvec4) ImageSampleExplicitLod 57 59 Grad 60 60
Store 50(txval20) 61
66: 63 Load 65(g_tTex2di4)
67: 14 Load 16(g_sSamp)
69: 68 SampledImage 66 67
72: 25(ivec4) ImageSampleExplicitLod 69 71 Grad 60 60
Store 62(txval21) 72
77: 74 Load 76(g_tTex2du4)
78: 14 Load 16(g_sSamp)
80: 79 SampledImage 77 78
84: 38(ivec4) ImageSampleExplicitLod 80 83 Grad 60 60
Store 73(txval22) 84
89: 86 Load 88(g_tTex3df4)
90: 14 Load 16(g_sSamp)
92: 91 SampledImage 89 90
97: 7(fvec4) ImageSampleExplicitLod 92 94 Grad 96 96
Store 85(txval30) 97
102: 99 Load 101(g_tTex3di4)
103: 14 Load 16(g_sSamp)
105: 104 SampledImage 102 103
107: 25(ivec4) ImageSampleExplicitLod 105 106 Grad 96 96
Store 98(txval31) 107
112: 109 Load 111(g_tTex3du4)
113: 14 Load 16(g_sSamp)
115: 114 SampledImage 112 113
120: 38(ivec4) ImageSampleExplicitLod 115 119 Grad 96 96
Store 108(txval32) 120
125: 122 Load 124(g_tTexcdf4)
126: 14 Load 16(g_sSamp)
128: 127 SampledImage 125 126
129: 7(fvec4) ImageSampleExplicitLod 128 94 Grad 96 96
Store 121(txval40) 129
134: 131 Load 133(g_tTexcdi4)
135: 14 Load 16(g_sSamp)
137: 136 SampledImage 134 135
138: 25(ivec4) ImageSampleExplicitLod 137 106 Grad 96 96
Store 130(txval41) 138
143: 140 Load 142(g_tTexcdu4)
144: 14 Load 16(g_sSamp)
146: 145 SampledImage 143 144
147: 38(ivec4) ImageSampleExplicitLod 146 119 Grad 96 96
Store 139(txval42) 147
154: 8(ptr) AccessChain 150(psout) 151
Store 154 153
157: 156(ptr) AccessChain 150(psout) 155
Store 157 152
160: 8(ptr) AccessChain 150(psout) 151
161: 7(fvec4) Load 160
Store 159(Color) 161
164: 156(ptr) AccessChain 150(psout) 155
165: 6(float) Load 164
Store 163(Depth) 165
164(flattenTemp): 152(ptr) Variable Function
165:8(PS_OUTPUT) FunctionCall 10(@main()
Store 164(flattenTemp) 165
168: 12(ptr) AccessChain 164(flattenTemp) 154
169: 7(fvec4) Load 168
Store 167(Color) 169
172: 159(ptr) AccessChain 164(flattenTemp) 158
173: 6(float) Load 172
Store 171(Depth) 173
Return
FunctionEnd
10(@main():8(PS_OUTPUT) Function None 9
11: Label
13(txval10): 12(ptr) Variable Function
31(txval11): 30(ptr) Variable Function
44(txval12): 43(ptr) Variable Function
54(txval20): 12(ptr) Variable Function
66(txval21): 30(ptr) Variable Function
77(txval22): 43(ptr) Variable Function
89(txval30): 12(ptr) Variable Function
102(txval31): 30(ptr) Variable Function
112(txval32): 43(ptr) Variable Function
125(txval40): 12(ptr) Variable Function
134(txval41): 30(ptr) Variable Function
143(txval42): 43(ptr) Variable Function
153(psout): 152(ptr) Variable Function
17: 14 Load 16(g_tTex1df4)
21: 18 Load 20(g_sSamp)
23: 22 SampledImage 17 21
27: 7(fvec4) ImageSampleExplicitLod 23 24 Grad 25 26
Store 13(txval10) 27
35: 32 Load 34(g_tTex1di4)
36: 18 Load 20(g_sSamp)
38: 37 SampledImage 35 36
40: 29(ivec4) ImageSampleExplicitLod 38 39 Grad 25 26
Store 31(txval11) 40
48: 45 Load 47(g_tTex1du4)
49: 18 Load 20(g_sSamp)
51: 50 SampledImage 48 49
53: 42(ivec4) ImageSampleExplicitLod 51 52 Grad 25 26
Store 44(txval12) 53
58: 55 Load 57(g_tTex2df4)
59: 18 Load 20(g_sSamp)
61: 60 SampledImage 58 59
65: 7(fvec4) ImageSampleExplicitLod 61 63 Grad 64 64
Store 54(txval20) 65
70: 67 Load 69(g_tTex2di4)
71: 18 Load 20(g_sSamp)
73: 72 SampledImage 70 71
76: 29(ivec4) ImageSampleExplicitLod 73 75 Grad 64 64
Store 66(txval21) 76
81: 78 Load 80(g_tTex2du4)
82: 18 Load 20(g_sSamp)
84: 83 SampledImage 81 82
88: 42(ivec4) ImageSampleExplicitLod 84 87 Grad 64 64
Store 77(txval22) 88
93: 90 Load 92(g_tTex3df4)
94: 18 Load 20(g_sSamp)
96: 95 SampledImage 93 94
101: 7(fvec4) ImageSampleExplicitLod 96 98 Grad 100 100
Store 89(txval30) 101
106: 103 Load 105(g_tTex3di4)
107: 18 Load 20(g_sSamp)
109: 108 SampledImage 106 107
111: 29(ivec4) ImageSampleExplicitLod 109 110 Grad 100 100
Store 102(txval31) 111
116: 113 Load 115(g_tTex3du4)
117: 18 Load 20(g_sSamp)
119: 118 SampledImage 116 117
124: 42(ivec4) ImageSampleExplicitLod 119 123 Grad 100 100
Store 112(txval32) 124
129: 126 Load 128(g_tTexcdf4)
130: 18 Load 20(g_sSamp)
132: 131 SampledImage 129 130
133: 7(fvec4) ImageSampleExplicitLod 132 98 Grad 100 100
Store 125(txval40) 133
138: 135 Load 137(g_tTexcdi4)
139: 18 Load 20(g_sSamp)
141: 140 SampledImage 138 139
142: 29(ivec4) ImageSampleExplicitLod 141 110 Grad 100 100
Store 134(txval41) 142
147: 144 Load 146(g_tTexcdu4)
148: 18 Load 20(g_sSamp)
150: 149 SampledImage 147 148
151: 42(ivec4) ImageSampleExplicitLod 150 123 Grad 100 100
Store 143(txval42) 151
157: 12(ptr) AccessChain 153(psout) 154
Store 157 156
160: 159(ptr) AccessChain 153(psout) 158
Store 160 155
161:8(PS_OUTPUT) Load 153(psout)
ReturnValue 161
FunctionEnd