1spv.varyingArray.frag 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 61 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 19 34 39 45 48 10 ExecutionMode 4 OriginUpperLeft 11 Source GLSL 140 12 Name 4 "main" 13 Name 9 "texColor" 14 Name 13 "texSampler2D" 15 Name 19 "TexCoord" 16 Name 34 "color" 17 Name 39 "alpha" 18 Name 45 "gl_FragColor" 19 Name 48 "foo" 20 Decorate 13(texSampler2D) Binding 0 21 Decorate 13(texSampler2D) DescriptorSet 0 22 Decorate 19(TexCoord) Location 2 23 Decorate 34(color) Location 0 24 Decorate 39(alpha) Location 1 25 Decorate 45(gl_FragColor) Location 0 26 Decorate 48(foo) Location 8 27 2: TypeVoid 28 3: TypeFunction 2 29 6: TypeFloat 32 30 7: TypeVector 6(float) 4 31 8: TypePointer Function 7(fvec4) 32 10: TypeImage 6(float) 2D sampled format:Unknown 33 11: TypeSampledImage 10 34 12: TypePointer UniformConstant 11 3513(texSampler2D): 12(ptr) Variable UniformConstant 36 15: TypeInt 32 0 37 16: 15(int) Constant 6 38 17: TypeArray 7(fvec4) 16 39 18: TypePointer Input 17 40 19(TexCoord): 18(ptr) Variable Input 41 20: TypeInt 32 1 42 21: 20(int) Constant 4 43 22: TypePointer Input 7(fvec4) 44 25: 20(int) Constant 5 45 29: TypeVector 6(float) 2 46 34(color): 22(ptr) Variable Input 47 38: TypePointer Input 6(float) 48 39(alpha): 38(ptr) Variable Input 49 41: 15(int) Constant 3 50 42: TypePointer Function 6(float) 51 44: TypePointer Output 7(fvec4) 5245(gl_FragColor): 44(ptr) Variable Output 53 46: TypeArray 7(fvec4) 41 54 47: TypePointer Input 46 55 48(foo): 47(ptr) Variable Input 56 49: 20(int) Constant 1 57 52: 20(int) Constant 0 58 4(main): 2 Function None 3 59 5: Label 60 9(texColor): 8(ptr) Variable Function 61 14: 11 Load 13(texSampler2D) 62 23: 22(ptr) AccessChain 19(TexCoord) 21 63 24: 7(fvec4) Load 23 64 26: 22(ptr) AccessChain 19(TexCoord) 25 65 27: 7(fvec4) Load 26 66 28: 7(fvec4) FAdd 24 27 67 30: 6(float) CompositeExtract 28 0 68 31: 6(float) CompositeExtract 28 1 69 32: 29(fvec2) CompositeConstruct 30 31 70 33: 7(fvec4) ImageSampleImplicitLod 14 32 71 Store 9(texColor) 33 72 35: 7(fvec4) Load 34(color) 73 36: 7(fvec4) Load 9(texColor) 74 37: 7(fvec4) FAdd 36 35 75 Store 9(texColor) 37 76 40: 6(float) Load 39(alpha) 77 43: 42(ptr) AccessChain 9(texColor) 41 78 Store 43 40 79 50: 22(ptr) AccessChain 48(foo) 49 80 51: 7(fvec4) Load 50 81 53: 22(ptr) AccessChain 19(TexCoord) 52 82 54: 7(fvec4) Load 53 83 55: 7(fvec4) FAdd 51 54 84 56: 22(ptr) AccessChain 19(TexCoord) 21 85 57: 7(fvec4) Load 56 86 58: 7(fvec4) FAdd 55 57 87 59: 7(fvec4) Load 9(texColor) 88 60: 7(fvec4) FAdd 58 59 89 Store 45(gl_FragColor) 60 90 Return 91 FunctionEnd 92