1spv.varyingArray.frag 2// Module Version 10000 3// Generated by (magic number): 80007 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) DescriptorSet 0 21 Decorate 45(gl_FragColor) Location 0 22 2: TypeVoid 23 3: TypeFunction 2 24 6: TypeFloat 32 25 7: TypeVector 6(float) 4 26 8: TypePointer Function 7(fvec4) 27 10: TypeImage 6(float) 2D sampled format:Unknown 28 11: TypeSampledImage 10 29 12: TypePointer UniformConstant 11 3013(texSampler2D): 12(ptr) Variable UniformConstant 31 15: TypeInt 32 0 32 16: 15(int) Constant 6 33 17: TypeArray 7(fvec4) 16 34 18: TypePointer Input 17 35 19(TexCoord): 18(ptr) Variable Input 36 20: TypeInt 32 1 37 21: 20(int) Constant 4 38 22: TypePointer Input 7(fvec4) 39 25: 20(int) Constant 5 40 29: TypeVector 6(float) 2 41 34(color): 22(ptr) Variable Input 42 38: TypePointer Input 6(float) 43 39(alpha): 38(ptr) Variable Input 44 41: 15(int) Constant 3 45 42: TypePointer Function 6(float) 46 44: TypePointer Output 7(fvec4) 4745(gl_FragColor): 44(ptr) Variable Output 48 46: TypeArray 7(fvec4) 41 49 47: TypePointer Input 46 50 48(foo): 47(ptr) Variable Input 51 49: 20(int) Constant 1 52 52: 20(int) Constant 0 53 4(main): 2 Function None 3 54 5: Label 55 9(texColor): 8(ptr) Variable Function 56 14: 11 Load 13(texSampler2D) 57 23: 22(ptr) AccessChain 19(TexCoord) 21 58 24: 7(fvec4) Load 23 59 26: 22(ptr) AccessChain 19(TexCoord) 25 60 27: 7(fvec4) Load 26 61 28: 7(fvec4) FAdd 24 27 62 30: 6(float) CompositeExtract 28 0 63 31: 6(float) CompositeExtract 28 1 64 32: 29(fvec2) CompositeConstruct 30 31 65 33: 7(fvec4) ImageSampleImplicitLod 14 32 66 Store 9(texColor) 33 67 35: 7(fvec4) Load 34(color) 68 36: 7(fvec4) Load 9(texColor) 69 37: 7(fvec4) FAdd 36 35 70 Store 9(texColor) 37 71 40: 6(float) Load 39(alpha) 72 43: 42(ptr) AccessChain 9(texColor) 41 73 Store 43 40 74 50: 22(ptr) AccessChain 48(foo) 49 75 51: 7(fvec4) Load 50 76 53: 22(ptr) AccessChain 19(TexCoord) 52 77 54: 7(fvec4) Load 53 78 55: 7(fvec4) FAdd 51 54 79 56: 22(ptr) AccessChain 19(TexCoord) 21 80 57: 7(fvec4) Load 56 81 58: 7(fvec4) FAdd 55 57 82 59: 7(fvec4) Load 9(texColor) 83 60: 7(fvec4) FAdd 58 59 84 Store 45(gl_FragColor) 60 85 Return 86 FunctionEnd 87