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