Jeff Bolz | 9f2aec4 | 2019-01-06 17:58:04 -0600 | [diff] [blame] | 1 | spv.bufferhandle12.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 |
John Kessenich | 31c3370 | 2019-11-02 21:26:40 -0600 | [diff] [blame] | 6 | // Generated by (magic number): 80008 |
Jeff Bolz | 9f2aec4 | 2019-01-06 17:58:04 -0600 | [diff] [blame] | 7 | // Id's are bound by 183 |
| 8 | |
| 9 | Capability Shader |
| 10 | Capability StorageUniformBufferBlock16 |
Daniel Koch | 9bb17cd | 2019-05-28 15:23:10 -0400 | [diff] [blame] | 11 | Capability PhysicalStorageBufferAddressesEXT |
John Kessenich | 1ff0c18 | 2019-10-10 12:01:13 -0600 | [diff] [blame] | 12 | Extension "SPV_EXT_physical_storage_buffer" |
Jeff Bolz | 9f2aec4 | 2019-01-06 17:58:04 -0600 | [diff] [blame] | 13 | Extension "SPV_KHR_16bit_storage" |
Jeff Bolz | 9f2aec4 | 2019-01-06 17:58:04 -0600 | [diff] [blame] | 14 | Extension "SPV_KHR_storage_buffer_storage_class" |
| 15 | 1: ExtInstImport "GLSL.std.450" |
| 16 | MemoryModel PhysicalStorageBuffer64EXT GLSL450 |
| 17 | EntryPoint Fragment 4 "main" |
| 18 | ExecutionMode 4 OriginUpperLeft |
| 19 | Source GLSL 450 |
| 20 | SourceExtension "GL_EXT_buffer_reference" |
| 21 | SourceExtension "GL_EXT_shader_16bit_storage" |
| 22 | SourceExtension "GL_EXT_shader_8bit_storage" |
| 23 | Name 4 "main" |
| 24 | Name 12 "compare_float(f1;f1;" |
| 25 | Name 10 "a" |
| 26 | Name 11 "b" |
| 27 | Name 19 "compare_vec3(vf3;vf3;" |
| 28 | Name 17 "a" |
| 29 | Name 18 "b" |
| 30 | Name 26 "compare_mat2x3(mf23;mf23;" |
| 31 | Name 24 "a" |
| 32 | Name 25 "b" |
| 33 | Name 34 "compare_ivec2(vi2;vi2;" |
| 34 | Name 32 "a" |
| 35 | Name 33 "b" |
| 36 | Name 42 "compare_uvec3(vu3;vu3;" |
| 37 | Name 40 "a" |
| 38 | Name 41 "b" |
| 39 | Name 46 "compare_float16_t(f1;f1;" |
| 40 | Name 44 "a" |
| 41 | Name 45 "b" |
| 42 | Name 56 "param" |
| 43 | Name 60 "param" |
| 44 | Name 66 "param" |
| 45 | Name 70 "param" |
| 46 | Name 77 "param" |
| 47 | Name 81 "param" |
| 48 | Name 89 "param" |
| 49 | Name 92 "param" |
| 50 | Name 99 "param" |
| 51 | Name 102 "param" |
| 52 | Name 131 "allOk" |
| 53 | Name 139 "PC" |
| 54 | MemberName 139(PC) 0 "blockB" |
| 55 | MemberName 139(PC) 1 "blockC" |
| 56 | MemberName 139(PC) 2 "blockD" |
| 57 | Name 141 "BlockB" |
| 58 | MemberName 141(BlockB) 0 "a" |
| 59 | MemberName 141(BlockB) 1 "b" |
| 60 | Name 142 "BlockC" |
| 61 | MemberName 142(BlockC) 0 "c" |
| 62 | Name 143 "BlockD" |
| 63 | MemberName 143(BlockD) 0 "d" |
| 64 | Name 145 "" |
| 65 | Name 157 "param" |
| 66 | Name 161 "param" |
| 67 | Name 167 "AcBlock" |
| 68 | MemberName 167(AcBlock) 0 "ac_numPassed" |
| 69 | Name 169 "" |
| 70 | MemberDecorate 139(PC) 0 Offset 0 |
| 71 | MemberDecorate 139(PC) 1 Offset 8 |
| 72 | MemberDecorate 139(PC) 2 Offset 16 |
| 73 | Decorate 139(PC) Block |
| 74 | MemberDecorate 141(BlockB) 0 Offset 0 |
| 75 | MemberDecorate 141(BlockB) 1 Offset 8 |
| 76 | Decorate 141(BlockB) Block |
| 77 | MemberDecorate 142(BlockC) 0 ColMajor |
| 78 | MemberDecorate 142(BlockC) 0 RelaxedPrecision |
| 79 | MemberDecorate 142(BlockC) 0 Offset 0 |
| 80 | MemberDecorate 142(BlockC) 0 MatrixStride 16 |
| 81 | Decorate 142(BlockC) Block |
| 82 | MemberDecorate 143(BlockD) 0 RelaxedPrecision |
| 83 | MemberDecorate 143(BlockD) 0 Offset 0 |
| 84 | Decorate 143(BlockD) Block |
| 85 | Decorate 160 RelaxedPrecision |
| 86 | MemberDecorate 167(AcBlock) 0 Offset 0 |
| 87 | Decorate 167(AcBlock) Block |
| 88 | Decorate 169 DescriptorSet 0 |
| 89 | Decorate 169 Binding 0 |
| 90 | 2: TypeVoid |
| 91 | 3: TypeFunction 2 |
| 92 | 6: TypeFloat 32 |
| 93 | 7: TypePointer Function 6(float) |
| 94 | 8: TypeBool |
| 95 | 9: TypeFunction 8(bool) 7(ptr) 7(ptr) |
| 96 | 14: TypeVector 6(float) 3 |
| 97 | 15: TypePointer Function 14(fvec3) |
| 98 | 16: TypeFunction 8(bool) 15(ptr) 15(ptr) |
| 99 | 21: TypeMatrix 14(fvec3) 2 |
| 100 | 22: TypePointer Function 21 |
| 101 | 23: TypeFunction 8(bool) 22(ptr) 22(ptr) |
| 102 | 28: TypeInt 32 1 |
| 103 | 29: TypeVector 28(int) 2 |
| 104 | 30: TypePointer Function 29(ivec2) |
| 105 | 31: TypeFunction 8(bool) 30(ptr) 30(ptr) |
| 106 | 36: TypeInt 32 0 |
| 107 | 37: TypeVector 36(int) 3 |
| 108 | 38: TypePointer Function 37(ivec3) |
| 109 | 39: TypeFunction 8(bool) 38(ptr) 38(ptr) |
| 110 | 52: 6(float) Constant 1028443341 |
| 111 | 57: 36(int) Constant 0 |
| 112 | 67: 36(int) Constant 1 |
| 113 | 78: 36(int) Constant 2 |
| 114 | 88: 28(int) Constant 0 |
| 115 | 98: 28(int) Constant 1 |
| 116 | 111: TypeVector 8(bool) 2 |
| 117 | 118: TypeVector 8(bool) 3 |
| 118 | 130: TypePointer Function 8(bool) |
| 119 | 132: 8(bool) ConstantTrue |
| 120 | TypeForwardPointer 136 PhysicalStorageBufferEXT |
| 121 | TypeForwardPointer 137 PhysicalStorageBufferEXT |
| 122 | TypeForwardPointer 138 PhysicalStorageBufferEXT |
| 123 | 139(PC): TypeStruct 136 137 138 |
| 124 | 140: TypeFloat 16 |
| 125 | 141(BlockB): TypeStruct 140(float16_t) 29(ivec2) |
| 126 | 136: TypePointer PhysicalStorageBufferEXT 141(BlockB) |
| 127 | 142(BlockC): TypeStruct 21 |
| 128 | 137: TypePointer PhysicalStorageBufferEXT 142(BlockC) |
| 129 | 143(BlockD): TypeStruct 37(ivec3) |
| 130 | 138: TypePointer PhysicalStorageBufferEXT 143(BlockD) |
| 131 | 144: TypePointer PushConstant 139(PC) |
| 132 | 145: 144(ptr) Variable PushConstant |
| 133 | 146: TypePointer PushConstant 137(ptr) |
| 134 | 149: 6(float) Constant 3231711232 |
| 135 | 150: 6(float) Constant 1065353216 |
| 136 | 151: 6(float) Constant 3235905536 |
| 137 | 152: 14(fvec3) ConstantComposite 149 150 151 |
| 138 | 153: 6(float) Constant 1073741824 |
| 139 | 154: 6(float) Constant 1090519040 |
| 140 | 155: 14(fvec3) ConstantComposite 150 153 154 |
| 141 | 156: 21 ConstantComposite 152 155 |
| 142 | 158: TypePointer PhysicalStorageBufferEXT 21 |
| 143 | 167(AcBlock): TypeStruct 36(int) |
| 144 | 168: TypePointer StorageBuffer 167(AcBlock) |
| 145 | 169: 168(ptr) Variable StorageBuffer |
| 146 | 170: TypePointer StorageBuffer 36(int) |
| 147 | 174: 28(int) Constant 2 |
| 148 | 175: TypePointer PushConstant 138(ptr) |
| 149 | 178: 36(int) Constant 8 |
| 150 | 179: 36(int) Constant 5 |
| 151 | 180: 37(ivec3) ConstantComposite 178 67 179 |
| 152 | 181: TypePointer PhysicalStorageBufferEXT 37(ivec3) |
| 153 | 4(main): 2 Function None 3 |
| 154 | 5: Label |
| 155 | 131(allOk): 130(ptr) Variable Function |
| 156 | 157(param): 22(ptr) Variable Function |
| 157 | 161(param): 22(ptr) Variable Function |
| 158 | Store 131(allOk) 132 |
| 159 | 133: 8(bool) Load 131(allOk) |
| 160 | SelectionMerge 135 None |
| 161 | BranchConditional 133 134 135 |
| 162 | 134: Label |
| 163 | 147: 146(ptr) AccessChain 145 98 |
| 164 | 148: 137(ptr) Load 147 |
| 165 | 159: 158(ptr) AccessChain 148 88 |
| 166 | 160: 21 Load 159 Aligned 16 |
| 167 | Store 157(param) 160 |
| 168 | Store 161(param) 156 |
| 169 | 162: 8(bool) FunctionCall 26(compare_mat2x3(mf23;mf23;) 157(param) 161(param) |
| 170 | Branch 135 |
| 171 | 135: Label |
| 172 | 163: 8(bool) Phi 133 5 162 134 |
| 173 | Store 131(allOk) 163 |
| 174 | 164: 8(bool) Load 131(allOk) |
| 175 | SelectionMerge 166 None |
| 176 | BranchConditional 164 165 166 |
| 177 | 165: Label |
| 178 | 171: 170(ptr) AccessChain 169 88 |
| 179 | 172: 36(int) Load 171 |
| 180 | 173: 36(int) IAdd 172 98 |
| 181 | Store 171 173 |
| 182 | Branch 166 |
| 183 | 166: Label |
| 184 | 176: 175(ptr) AccessChain 145 174 |
| 185 | 177: 138(ptr) Load 176 |
| 186 | 182: 181(ptr) AccessChain 177 88 |
| 187 | Store 182 180 Aligned 16 |
| 188 | Return |
| 189 | FunctionEnd |
| 190 | 12(compare_float(f1;f1;): 8(bool) Function None 9 |
| 191 | 10(a): 7(ptr) FunctionParameter |
| 192 | 11(b): 7(ptr) FunctionParameter |
| 193 | 13: Label |
| 194 | 48: 6(float) Load 10(a) |
| 195 | 49: 6(float) Load 11(b) |
| 196 | 50: 6(float) FSub 48 49 |
| 197 | 51: 6(float) ExtInst 1(GLSL.std.450) 4(FAbs) 50 |
| 198 | 53: 8(bool) FOrdLessThan 51 52 |
| 199 | ReturnValue 53 |
| 200 | FunctionEnd |
| 201 | 19(compare_vec3(vf3;vf3;): 8(bool) Function None 16 |
| 202 | 17(a): 15(ptr) FunctionParameter |
| 203 | 18(b): 15(ptr) FunctionParameter |
| 204 | 20: Label |
| 205 | 56(param): 7(ptr) Variable Function |
| 206 | 60(param): 7(ptr) Variable Function |
| 207 | 66(param): 7(ptr) Variable Function |
| 208 | 70(param): 7(ptr) Variable Function |
| 209 | 77(param): 7(ptr) Variable Function |
| 210 | 81(param): 7(ptr) Variable Function |
| 211 | 58: 7(ptr) AccessChain 17(a) 57 |
| 212 | 59: 6(float) Load 58 |
| 213 | Store 56(param) 59 |
| 214 | 61: 7(ptr) AccessChain 18(b) 57 |
| 215 | 62: 6(float) Load 61 |
| 216 | Store 60(param) 62 |
| 217 | 63: 8(bool) FunctionCall 12(compare_float(f1;f1;) 56(param) 60(param) |
| 218 | SelectionMerge 65 None |
| 219 | BranchConditional 63 64 65 |
| 220 | 64: Label |
| 221 | 68: 7(ptr) AccessChain 17(a) 67 |
| 222 | 69: 6(float) Load 68 |
| 223 | Store 66(param) 69 |
| 224 | 71: 7(ptr) AccessChain 18(b) 67 |
| 225 | 72: 6(float) Load 71 |
| 226 | Store 70(param) 72 |
| 227 | 73: 8(bool) FunctionCall 12(compare_float(f1;f1;) 66(param) 70(param) |
| 228 | Branch 65 |
| 229 | 65: Label |
| 230 | 74: 8(bool) Phi 63 20 73 64 |
| 231 | SelectionMerge 76 None |
| 232 | BranchConditional 74 75 76 |
| 233 | 75: Label |
| 234 | 79: 7(ptr) AccessChain 17(a) 78 |
| 235 | 80: 6(float) Load 79 |
| 236 | Store 77(param) 80 |
| 237 | 82: 7(ptr) AccessChain 18(b) 78 |
| 238 | 83: 6(float) Load 82 |
| 239 | Store 81(param) 83 |
| 240 | 84: 8(bool) FunctionCall 12(compare_float(f1;f1;) 77(param) 81(param) |
| 241 | Branch 76 |
| 242 | 76: Label |
| 243 | 85: 8(bool) Phi 74 65 84 75 |
| 244 | ReturnValue 85 |
| 245 | FunctionEnd |
| 246 | 26(compare_mat2x3(mf23;mf23;): 8(bool) Function None 23 |
| 247 | 24(a): 22(ptr) FunctionParameter |
| 248 | 25(b): 22(ptr) FunctionParameter |
| 249 | 27: Label |
| 250 | 89(param): 15(ptr) Variable Function |
| 251 | 92(param): 15(ptr) Variable Function |
| 252 | 99(param): 15(ptr) Variable Function |
| 253 | 102(param): 15(ptr) Variable Function |
| 254 | 90: 15(ptr) AccessChain 24(a) 88 |
| 255 | 91: 14(fvec3) Load 90 |
| 256 | Store 89(param) 91 |
| 257 | 93: 15(ptr) AccessChain 25(b) 88 |
| 258 | 94: 14(fvec3) Load 93 |
| 259 | Store 92(param) 94 |
| 260 | 95: 8(bool) FunctionCall 19(compare_vec3(vf3;vf3;) 89(param) 92(param) |
| 261 | SelectionMerge 97 None |
| 262 | BranchConditional 95 96 97 |
| 263 | 96: Label |
| 264 | 100: 15(ptr) AccessChain 24(a) 98 |
| 265 | 101: 14(fvec3) Load 100 |
| 266 | Store 99(param) 101 |
| 267 | 103: 15(ptr) AccessChain 25(b) 98 |
| 268 | 104: 14(fvec3) Load 103 |
| 269 | Store 102(param) 104 |
| 270 | 105: 8(bool) FunctionCall 19(compare_vec3(vf3;vf3;) 99(param) 102(param) |
| 271 | Branch 97 |
| 272 | 97: Label |
| 273 | 106: 8(bool) Phi 95 27 105 96 |
| 274 | ReturnValue 106 |
| 275 | FunctionEnd |
| 276 | 34(compare_ivec2(vi2;vi2;): 8(bool) Function None 31 |
| 277 | 32(a): 30(ptr) FunctionParameter |
| 278 | 33(b): 30(ptr) FunctionParameter |
| 279 | 35: Label |
| 280 | 109: 29(ivec2) Load 32(a) |
| 281 | 110: 29(ivec2) Load 33(b) |
| 282 | 112: 111(bvec2) IEqual 109 110 |
| 283 | 113: 8(bool) All 112 |
| 284 | ReturnValue 113 |
| 285 | FunctionEnd |
| 286 | 42(compare_uvec3(vu3;vu3;): 8(bool) Function None 39 |
| 287 | 40(a): 38(ptr) FunctionParameter |
| 288 | 41(b): 38(ptr) FunctionParameter |
| 289 | 43: Label |
| 290 | 116: 37(ivec3) Load 40(a) |
| 291 | 117: 37(ivec3) Load 41(b) |
| 292 | 119: 118(bvec3) IEqual 116 117 |
| 293 | 120: 8(bool) All 119 |
| 294 | ReturnValue 120 |
| 295 | FunctionEnd |
| 296 | 46(compare_float16_t(f1;f1;): 8(bool) Function None 9 |
| 297 | 44(a): 7(ptr) FunctionParameter |
| 298 | 45(b): 7(ptr) FunctionParameter |
| 299 | 47: Label |
| 300 | 123: 6(float) Load 44(a) |
| 301 | 124: 6(float) Load 45(b) |
| 302 | 125: 6(float) FSub 123 124 |
| 303 | 126: 6(float) ExtInst 1(GLSL.std.450) 4(FAbs) 125 |
| 304 | 127: 8(bool) FOrdLessThan 126 52 |
| 305 | ReturnValue 127 |
| 306 | FunctionEnd |