1hlsl.aliasOpaque.frag 2WARNING: AST will form illegal SPIR-V; need to transform to legalize 3Shader version: 500 4gl_FragCoord origin is upper left 50:? Sequence 60:12 Function Definition: osCall(struct-OS-p1-f1-t211; ( temp 4-component vector of float) 70:12 Function Parameters: 80:12 's' ( in structure{ temp sampler ss, temp float a, temp texture2D tex}) 90:? Sequence 100:13 Branch: Return with expression 110:13 vector-scale ( temp 4-component vector of float) 120:13 a: direct index for structure ( temp float) 130:13 's' ( in structure{ temp sampler ss, temp float a, temp texture2D tex}) 140:13 Constant: 150:13 1 (const int) 160:13 texture ( temp 4-component vector of float) 170:13 Construct combined texture-sampler ( temp sampler2D) 180:13 tex: direct index for structure ( temp texture2D) 190:13 's' ( in structure{ temp sampler ss, temp float a, temp texture2D tex}) 200:13 Constant: 210:13 2 (const int) 220:13 ss: direct index for structure ( temp sampler) 230:13 's' ( in structure{ temp sampler ss, temp float a, temp texture2D tex}) 240:13 Constant: 250:13 0 (const int) 260:? Constant: 270:? 0.200000 280:? 0.300000 290:17 Function Definition: @main( ( temp 4-component vector of float) 300:17 Function Parameters: 310:? Sequence 320:19 move second child to first child ( temp sampler) 330:19 ss: direct index for structure ( temp sampler) 340:19 'os' ( temp structure{ temp sampler ss, temp float a, temp texture2D tex}) 350:19 Constant: 360:19 0 (const int) 370:19 'gss2' ( uniform sampler) 380:20 move second child to first child ( temp sampler) 390:20 ss: direct index for structure ( temp sampler) 400:20 'os' ( temp structure{ temp sampler ss, temp float a, temp texture2D tex}) 410:20 Constant: 420:20 0 (const int) 430:20 'gss' ( uniform sampler) 440:21 move second child to first child ( temp texture2D) 450:21 tex: direct index for structure ( temp texture2D) 460:21 'os' ( temp structure{ temp sampler ss, temp float a, temp texture2D tex}) 470:21 Constant: 480:21 2 (const int) 490:21 'gtex' ( uniform texture2D) 500:22 move second child to first child ( temp float) 510:22 a: direct index for structure ( temp float) 520:22 'os' ( temp structure{ temp sampler ss, temp float a, temp texture2D tex}) 530:22 Constant: 540:22 1 (const int) 550:22 Constant: 560:22 3.000000 570:28 Branch: Return with expression 580:28 Function Call: osCall(struct-OS-p1-f1-t211; ( temp 4-component vector of float) 590:28 'os' ( temp structure{ temp sampler ss, temp float a, temp texture2D tex}) 600:17 Function Definition: main( ( temp void) 610:17 Function Parameters: 620:? Sequence 630:17 move second child to first child ( temp 4-component vector of float) 640:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 650:17 Function Call: @main( ( temp 4-component vector of float) 660:? Linker Objects 670:? 'gss' ( uniform sampler) 680:? 'gss2' ( uniform sampler) 690:? 'gtex' ( uniform texture2D) 700:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 71 72 73Linked fragment stage: 74 75 76Shader version: 500 77gl_FragCoord origin is upper left 780:? Sequence 790:12 Function Definition: osCall(struct-OS-p1-f1-t211; ( temp 4-component vector of float) 800:12 Function Parameters: 810:12 's' ( in structure{ temp sampler ss, temp float a, temp texture2D tex}) 820:? Sequence 830:13 Branch: Return with expression 840:13 vector-scale ( temp 4-component vector of float) 850:13 a: direct index for structure ( temp float) 860:13 's' ( in structure{ temp sampler ss, temp float a, temp texture2D tex}) 870:13 Constant: 880:13 1 (const int) 890:13 texture ( temp 4-component vector of float) 900:13 Construct combined texture-sampler ( temp sampler2D) 910:13 tex: direct index for structure ( temp texture2D) 920:13 's' ( in structure{ temp sampler ss, temp float a, temp texture2D tex}) 930:13 Constant: 940:13 2 (const int) 950:13 ss: direct index for structure ( temp sampler) 960:13 's' ( in structure{ temp sampler ss, temp float a, temp texture2D tex}) 970:13 Constant: 980:13 0 (const int) 990:? Constant: 1000:? 0.200000 1010:? 0.300000 1020:17 Function Definition: @main( ( temp 4-component vector of float) 1030:17 Function Parameters: 1040:? Sequence 1050:19 move second child to first child ( temp sampler) 1060:19 ss: direct index for structure ( temp sampler) 1070:19 'os' ( temp structure{ temp sampler ss, temp float a, temp texture2D tex}) 1080:19 Constant: 1090:19 0 (const int) 1100:19 'gss2' ( uniform sampler) 1110:20 move second child to first child ( temp sampler) 1120:20 ss: direct index for structure ( temp sampler) 1130:20 'os' ( temp structure{ temp sampler ss, temp float a, temp texture2D tex}) 1140:20 Constant: 1150:20 0 (const int) 1160:20 'gss' ( uniform sampler) 1170:21 move second child to first child ( temp texture2D) 1180:21 tex: direct index for structure ( temp texture2D) 1190:21 'os' ( temp structure{ temp sampler ss, temp float a, temp texture2D tex}) 1200:21 Constant: 1210:21 2 (const int) 1220:21 'gtex' ( uniform texture2D) 1230:22 move second child to first child ( temp float) 1240:22 a: direct index for structure ( temp float) 1250:22 'os' ( temp structure{ temp sampler ss, temp float a, temp texture2D tex}) 1260:22 Constant: 1270:22 1 (const int) 1280:22 Constant: 1290:22 3.000000 1300:28 Branch: Return with expression 1310:28 Function Call: osCall(struct-OS-p1-f1-t211; ( temp 4-component vector of float) 1320:28 'os' ( temp structure{ temp sampler ss, temp float a, temp texture2D tex}) 1330:17 Function Definition: main( ( temp void) 1340:17 Function Parameters: 1350:? Sequence 1360:17 move second child to first child ( temp 4-component vector of float) 1370:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 1380:17 Function Call: @main( ( temp 4-component vector of float) 1390:? Linker Objects 1400:? 'gss' ( uniform sampler) 1410:? 'gss2' ( uniform sampler) 1420:? 'gtex' ( uniform texture2D) 1430:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 144 145// Module Version 10000 146// Generated by (magic number): 8000a 147// Id's are bound by 64 148 149 Capability Shader 150 1: ExtInstImport "GLSL.std.450" 151 MemoryModel Logical GLSL450 152 EntryPoint Fragment 4 "main" 62 153 ExecutionMode 4 OriginUpperLeft 154 Source HLSL 500 155 Name 4 "main" 156 Name 9 "OS" 157 MemberName 9(OS) 0 "ss" 158 MemberName 9(OS) 1 "a" 159 MemberName 9(OS) 2 "tex" 160 Name 14 "osCall(struct-OS-p1-f1-t211;" 161 Name 13 "s" 162 Name 17 "@main(" 163 Name 42 "os" 164 Name 44 "gss2" 165 Name 47 "gss" 166 Name 51 "gtex" 167 Name 56 "param" 168 Name 62 "@entryPointOutput" 169 Decorate 44(gss2) DescriptorSet 0 170 Decorate 44(gss2) Binding 1 171 Decorate 47(gss) DescriptorSet 0 172 Decorate 47(gss) Binding 0 173 Decorate 51(gtex) DescriptorSet 0 174 Decorate 51(gtex) Binding 2 175 Decorate 62(@entryPointOutput) Location 0 176 2: TypeVoid 177 3: TypeFunction 2 178 6: TypeSampler 179 7: TypeFloat 32 180 8: TypeImage 7(float) 2D sampled format:Unknown 181 9(OS): TypeStruct 6 7(float) 8 182 10: TypePointer Function 9(OS) 183 11: TypeVector 7(float) 4 184 12: TypeFunction 11(fvec4) 10(ptr) 185 16: TypeFunction 11(fvec4) 186 19: TypeInt 32 1 187 20: 19(int) Constant 1 188 21: TypePointer Function 7(float) 189 24: 19(int) Constant 2 190 25: TypePointer Function 8 191 28: 19(int) Constant 0 192 29: TypePointer Function 6 193 32: TypeSampledImage 8 194 34: TypeVector 7(float) 2 195 35: 7(float) Constant 1045220557 196 36: 7(float) Constant 1050253722 197 37: 34(fvec2) ConstantComposite 35 36 198 43: TypePointer UniformConstant 6 199 44(gss2): 43(ptr) Variable UniformConstant 200 47(gss): 43(ptr) Variable UniformConstant 201 50: TypePointer UniformConstant 8 202 51(gtex): 50(ptr) Variable UniformConstant 203 54: 7(float) Constant 1077936128 204 61: TypePointer Output 11(fvec4) 20562(@entryPointOutput): 61(ptr) Variable Output 206 4(main): 2 Function None 3 207 5: Label 208 63: 11(fvec4) FunctionCall 17(@main() 209 Store 62(@entryPointOutput) 63 210 Return 211 FunctionEnd 21214(osCall(struct-OS-p1-f1-t211;): 11(fvec4) Function None 12 213 13(s): 10(ptr) FunctionParameter 214 15: Label 215 22: 21(ptr) AccessChain 13(s) 20 216 23: 7(float) Load 22 217 26: 25(ptr) AccessChain 13(s) 24 218 27: 8 Load 26 219 30: 29(ptr) AccessChain 13(s) 28 220 31: 6 Load 30 221 33: 32 SampledImage 27 31 222 38: 11(fvec4) ImageSampleImplicitLod 33 37 223 39: 11(fvec4) VectorTimesScalar 38 23 224 ReturnValue 39 225 FunctionEnd 226 17(@main(): 11(fvec4) Function None 16 227 18: Label 228 42(os): 10(ptr) Variable Function 229 56(param): 10(ptr) Variable Function 230 45: 6 Load 44(gss2) 231 46: 29(ptr) AccessChain 42(os) 28 232 Store 46 45 233 48: 6 Load 47(gss) 234 49: 29(ptr) AccessChain 42(os) 28 235 Store 49 48 236 52: 8 Load 51(gtex) 237 53: 25(ptr) AccessChain 42(os) 24 238 Store 53 52 239 55: 21(ptr) AccessChain 42(os) 20 240 Store 55 54 241 57: 9(OS) Load 42(os) 242 Store 56(param) 57 243 58: 11(fvec4) FunctionCall 14(osCall(struct-OS-p1-f1-t211;) 56(param) 244 ReturnValue 58 245 FunctionEnd 246