1spv.structAssignment.frag 2WARNING: 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 44(coord) RelaxedPrecision 42 Decorate 45 RelaxedPrecision 43 2: TypeVoid 44 3: TypeFunction 2 45 6: TypeInt 32 1 46 7: TypeFloat 32 47 8(lunarStruct1): TypeStruct 6(int) 7(float) 48 9(lunarStruct2): TypeStruct 6(int) 7(float) 8(lunarStruct1) 4910(lunarStruct3): TypeStruct 9(lunarStruct2) 6(int) 7(float) 8(lunarStruct1) 50 11: TypePointer Private 10(lunarStruct3) 51 12(foo3): 11(ptr) Variable Private 52 13: 6(int) Constant 0 53 14: TypePointer Private 6(int) 54 17: TypeBool 55 21: TypePointer Function 9(lunarStruct2) 56 23: TypePointer Private 9(lunarStruct2) 57 27(foo2): 23(ptr) Variable Private 58 29: TypeVector 7(float) 4 59 30: TypePointer Output 29(fvec4) 6031(gl_FragColor): 30(ptr) Variable Output 61 32: 6(int) Constant 2 62 33: 6(int) Constant 1 63 34: TypePointer Function 7(float) 64 37: TypeImage 7(float) 2D sampled format:Unknown 65 38: TypeSampledImage 37 66 39: TypePointer UniformConstant 38 67 40(samp2D): 39(ptr) Variable UniformConstant 68 42: TypeVector 7(float) 2 69 43: TypePointer Input 42(fvec2) 70 44(coord): 43(ptr) Variable Input 71 48: TypePointer Private 8(lunarStruct1) 72 49(foo): 48(ptr) Variable Private 73 4(main): 2 Function None 3 74 5: Label 75 22(locals2): 21(ptr) Variable Function 76 15: 14(ptr) AccessChain 12(foo3) 13 13 77 16: 6(int) Load 15 78 18: 17(bool) SGreaterThan 16 13 79 SelectionMerge 20 None 80 BranchConditional 18 19 26 81 19: Label 82 24: 23(ptr) AccessChain 12(foo3) 13 83 25:9(lunarStruct2) Load 24 84 Store 22(locals2) 25 85 Branch 20 86 26: Label 87 28:9(lunarStruct2) Load 27(foo2) 88 Store 22(locals2) 28 89 Branch 20 90 20: Label 91 35: 34(ptr) AccessChain 22(locals2) 32 33 92 36: 7(float) Load 35 93 41: 38 Load 40(samp2D) 94 45: 42(fvec2) Load 44(coord) 95 46: 29(fvec4) ImageSampleImplicitLod 41 45 96 47: 29(fvec4) VectorTimesScalar 46 36 97 Store 31(gl_FragColor) 47 98 Return 99 FunctionEnd 100