1spv.140.frag 2Validation failed 3// Module Version 10000 4// Generated by (magic number): 80007 5// Id's are bound by 96 6 7 Capability Shader 8 Capability ClipDistance 9 Capability SampledRect 10 Capability SampledBuffer 11 Capability ImageQuery 12 1: ExtInstImport "GLSL.std.450" 13 MemoryModel Logical GLSL450 14 EntryPoint Fragment 4 "main" 14 23 28 38 15 ExecutionMode 4 OriginUpperLeft 16 Source GLSL 140 17 Name 4 "main" 18 Name 8 "foo(" 19 Name 11 "i1" 20 Name 14 "gl_FrontFacing" 21 Name 19 "i2" 22 Name 23 "o" 23 Name 28 "gl_ClipDistance" 24 Name 38 "k" 25 Name 50 "sampR" 26 Name 58 "sampB" 27 Name 82 "samp2Da" 28 Name 87 "bn" 29 MemberName 87(bn) 0 "matra" 30 MemberName 87(bn) 1 "matca" 31 MemberName 87(bn) 2 "matr" 32 MemberName 87(bn) 3 "matc" 33 MemberName 87(bn) 4 "matrdef" 34 Name 89 "" 35 Name 92 "bi" 36 MemberName 92(bi) 0 "v" 37 Name 95 "bname" 38 Decorate 14(gl_FrontFacing) BuiltIn FrontFacing 39 Decorate 28(gl_ClipDistance) BuiltIn ClipDistance 40 Decorate 50(sampR) DescriptorSet 0 41 Decorate 50(sampR) Binding 0 42 Decorate 58(sampB) DescriptorSet 0 43 Decorate 58(sampB) Binding 0 44 Decorate 82(samp2Da) DescriptorSet 0 45 Decorate 82(samp2Da) Binding 0 46 Decorate 85 ArrayStride 64 47 Decorate 86 ArrayStride 64 48 MemberDecorate 87(bn) 0 RowMajor 49 MemberDecorate 87(bn) 0 Offset 0 50 MemberDecorate 87(bn) 0 MatrixStride 16 51 MemberDecorate 87(bn) 1 ColMajor 52 MemberDecorate 87(bn) 1 Offset 256 53 MemberDecorate 87(bn) 1 MatrixStride 16 54 MemberDecorate 87(bn) 2 RowMajor 55 MemberDecorate 87(bn) 2 Offset 512 56 MemberDecorate 87(bn) 2 MatrixStride 16 57 MemberDecorate 87(bn) 3 ColMajor 58 MemberDecorate 87(bn) 3 Offset 576 59 MemberDecorate 87(bn) 3 MatrixStride 16 60 MemberDecorate 87(bn) 4 RowMajor 61 MemberDecorate 87(bn) 4 Offset 1024 62 MemberDecorate 87(bn) 4 MatrixStride 16 63 Decorate 87(bn) Block 64 Decorate 89 DescriptorSet 0 65 Decorate 89 Binding 0 66 Decorate 91 ArrayStride 16 67 MemberDecorate 92(bi) 0 Offset 0 68 Decorate 92(bi) Block 69 Decorate 95(bname) DescriptorSet 0 70 Decorate 95(bname) Binding 0 71 2: TypeVoid 72 3: TypeFunction 2 73 6: TypeFloat 32 74 7: TypeFunction 6(float) 75 10: TypePointer Private 6(float) 76 11(i1): 10(ptr) Variable Private 77 12: TypeBool 78 13: TypePointer Input 12(bool) 7914(gl_FrontFacing): 13(ptr) Variable Input 80 16: 6(float) Constant 3221225472 81 17: 6(float) Constant 1073741824 82 19(i2): 10(ptr) Variable Private 83 20: 6(float) Constant 1120665600 84 21: TypeVector 6(float) 4 85 22: TypePointer Output 21(fvec4) 86 23(o): 22(ptr) Variable Output 87 24: TypeInt 32 0 88 25: 24(int) Constant 5 89 26: TypeArray 6(float) 25 90 27: TypePointer Input 26 9128(gl_ClipDistance): 27(ptr) Variable Input 92 29: TypeInt 32 1 93 30: 29(int) Constant 2 94 31: TypePointer Input 6(float) 95 34: 24(int) Constant 1 96 35: TypePointer Output 6(float) 97 37: TypePointer Input 21(fvec4) 98 38(k): 37(ptr) Variable Input 99 40: TypeVector 29(int) 4 100 45: 24(int) Constant 2 101 47: TypeImage 6(float) Rect sampled format:Unknown 102 48: TypeSampledImage 47 103 49: TypePointer UniformConstant 48 104 50(sampR): 49(ptr) Variable UniformConstant 105 53: TypeVector 29(int) 2 106 55: TypeImage 29(int) Buffer sampled format:Unknown 107 56: TypeSampledImage 55 108 57: TypePointer UniformConstant 56 109 58(sampB): 57(ptr) Variable UniformConstant 110 64: TypeVector 6(float) 2 111 67: 6(float) Constant 1120403456 112 69: 24(int) Constant 3 113 78: TypeImage 6(float) 2D sampled format:Unknown 114 79: TypeSampledImage 78 115 80: TypeArray 79 69 116 81: TypePointer UniformConstant 80 117 82(samp2Da): 81(ptr) Variable UniformConstant 118 83: TypeMatrix 21(fvec4) 4 119 84: 24(int) Constant 4 120 85: TypeArray 83 84 121 86: TypeArray 83 84 122 87(bn): TypeStruct 85 86 83 83 83 123 88: TypePointer Uniform 87(bn) 124 89: 88(ptr) Variable Uniform 125 90: TypeVector 6(float) 3 126 91: TypeArray 90(fvec3) 45 127 92(bi): TypeStruct 91 128 93: TypeArray 92(bi) 84 129 94: TypePointer Uniform 93 130 95(bname): 94(ptr) Variable Uniform 131 4(main): 2 Function None 3 132 5: Label 133 15: 12(bool) Load 14(gl_FrontFacing) 134 18: 6(float) Select 15 16 17 135 Store 11(i1) 18 136 Store 19(i2) 20 137 32: 31(ptr) AccessChain 28(gl_ClipDistance) 30 138 33: 6(float) Load 32 139 36: 35(ptr) AccessChain 23(o) 34 140 Store 36 33 141 39: 21(fvec4) Load 38(k) 142 41: 40(ivec4) ConvertFToS 39 143 42: 29(int) CompositeExtract 41 0 144 43: 31(ptr) AccessChain 28(gl_ClipDistance) 42 145 44: 6(float) Load 43 146 46: 35(ptr) AccessChain 23(o) 45 147 Store 46 44 148 51: 48 Load 50(sampR) 149 52: 47 Image 51 150 54: 53(ivec2) ImageQuerySize 52 151 59: 56 Load 58(sampB) 152 60: 55 Image 59 153 61: 29(int) ImageQuerySize 60 154 62: 53(ivec2) CompositeConstruct 61 61 155 63: 53(ivec2) IAdd 54 62 156 65: 64(fvec2) ConvertSToF 63 157 66: 6(float) CompositeExtract 65 0 158 68: 6(float) FDiv 66 67 159 70: 35(ptr) AccessChain 23(o) 69 160 Store 70 68 161 71: 6(float) FunctionCall 8(foo() 162 72: 35(ptr) AccessChain 23(o) 45 163 Store 72 71 164 Return 165 FunctionEnd 166 8(foo(): 6(float) Function None 7 167 9: Label 168 73: 6(float) Load 11(i1) 169 74: 6(float) Load 19(i2) 170 75: 6(float) FAdd 73 74 171 ReturnValue 75 172 FunctionEnd 173