sample-frag.frag Warning, version 400 is not yet complete; most version-specific features are present, but some are missing. Linked fragment stage: // Module Version 10000 // Generated by (magic number): 80001 // Id's are bound by 52 Capability Shader 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint Fragment 4 "main" 22 25 40 51 ExecutionMode 4 OriginUpperLeft Source GLSL 400 SourceExtension "GL_ARB_separate_shader_objects" SourceExtension "GL_ARB_shading_language_420pack" Name 4 "main" Name 8 "miscBuf" MemberName 8(miscBuf) 0 "uTime" MemberName 8(miscBuf) 1 "uMode" Name 10 "Misc" Name 22 "fFragColor" Name 25 "vColor" Name 36 "uSampler" Name 40 "vTexCoord" Name 48 "lightBuf" MemberName 48(lightBuf) 0 "uLightPos" Name 50 "Light" Name 51 "vNormal" MemberDecorate 8(miscBuf) 0 Offset 0 MemberDecorate 8(miscBuf) 1 Offset 4 Decorate 8(miscBuf) Block Decorate 10(Misc) DescriptorSet 2 Decorate 10(Misc) Binding 0 Decorate 22(fFragColor) Location 0 Decorate 25(vColor) Location 1 Decorate 36(uSampler) DescriptorSet 3 Decorate 36(uSampler) Binding 0 Decorate 40(vTexCoord) Location 2 MemberDecorate 48(lightBuf) 0 Offset 0 Decorate 48(lightBuf) Block Decorate 50(Light) DescriptorSet 1 Decorate 50(Light) Binding 0 Decorate 51(vNormal) Location 0 2: TypeVoid 3: TypeFunction 2 6: TypeFloat 32 7: TypeInt 32 1 8(miscBuf): TypeStruct 6(float) 7(int) 9: TypePointer Uniform 8(miscBuf) 10(Misc): 9(ptr) Variable Uniform 11: 7(int) Constant 1 12: TypePointer Uniform 7(int) 15: 7(int) Constant 0 16: TypeBool 20: TypeVector 6(float) 4 21: TypePointer Output 20(fvec4) 22(fFragColor): 21(ptr) Variable Output 23: TypeVector 6(float) 3 24: TypePointer Input 23(fvec3) 25(vColor): 24(ptr) Variable Input 27: 6(float) Constant 1065353216 33: TypeImage 6(float) 2D sampled format:Unknown 34: TypeSampledImage 33 35: TypePointer UniformConstant 34 36(uSampler): 35(ptr) Variable UniformConstant 38: TypeVector 6(float) 2 39: TypePointer Input 38(fvec2) 40(vTexCoord): 39(ptr) Variable Input 48(lightBuf): TypeStruct 20(fvec4) 49: TypePointer Uniform 48(lightBuf) 50(Light): 49(ptr) Variable Uniform 51(vNormal): 24(ptr) Variable Input 4(main): 2 Function None 3 5: Label 13: 12(ptr) AccessChain 10(Misc) 11 14: 7(int) Load 13 17: 16(bool) IEqual 14 15 SelectionMerge 19 None BranchConditional 17 18 32 18: Label 26: 23(fvec3) Load 25(vColor) 28: 6(float) CompositeExtract 26 0 29: 6(float) CompositeExtract 26 1 30: 6(float) CompositeExtract 26 2 31: 20(fvec4) CompositeConstruct 28 29 30 27 Store 22(fFragColor) 31 Branch 19 32: Label 37: 34 Load 36(uSampler) 41: 38(fvec2) Load 40(vTexCoord) 42: 20(fvec4) ImageSampleImplicitLod 37 41 43: 23(fvec3) VectorShuffle 42 42 0 1 2 44: 6(float) CompositeExtract 43 0 45: 6(float) CompositeExtract 43 1 46: 6(float) CompositeExtract 43 2 47: 20(fvec4) CompositeConstruct 44 45 46 27 Store 22(fFragColor) 47 Branch 19 19: Label Return FunctionEnd