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