James Price | d68d3a9 | 2022-04-07 13:42:45 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
| 4 | ; Bound: 21 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
| 8 | OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| 9 | OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| 10 | OpName %a_block "a_block" |
| 11 | OpMemberName %a_block 0 "inner" |
| 12 | OpName %a "a" |
| 13 | OpName %unused_entry_point "unused_entry_point" |
| 14 | OpName %main "main" |
| 15 | OpDecorate %a_block Block |
| 16 | OpMemberDecorate %a_block 0 Offset 0 |
| 17 | OpDecorate %_runtimearr_uint ArrayStride 4 |
| 18 | OpDecorate %a DescriptorSet 0 |
| 19 | OpDecorate %a Binding 0 |
| 20 | %uint = OpTypeInt 32 0 |
| 21 | %_runtimearr_uint = OpTypeRuntimeArray %uint |
| 22 | %a_block = OpTypeStruct %_runtimearr_uint |
| 23 | %_ptr_StorageBuffer_a_block = OpTypePointer StorageBuffer %a_block |
| 24 | %a = OpVariable %_ptr_StorageBuffer_a_block StorageBuffer |
| 25 | %void = OpTypeVoid |
| 26 | %6 = OpTypeFunction %void |
| 27 | %uint_0 = OpConstant %uint 0 |
| 28 | %int = OpTypeInt 32 1 |
| 29 | %int_1 = OpConstant %int 1 |
| 30 | %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| 31 | %uint_1 = OpConstant %uint 1 |
| 32 | %unused_entry_point = OpFunction %void None %6 |
| 33 | %9 = OpLabel |
| 34 | OpReturn |
| 35 | OpFunctionEnd |
| 36 | %main = OpFunction %void None %6 |
| 37 | %11 = OpLabel |
| 38 | %16 = OpAccessChain %_ptr_StorageBuffer_uint %a %uint_0 %int_1 |
| 39 | %17 = OpAccessChain %_ptr_StorageBuffer_uint %a %uint_0 %int_1 |
| 40 | %18 = OpLoad %uint %17 |
| 41 | %20 = OpISub %uint %18 %uint_1 |
| 42 | OpStore %16 %20 |
| 43 | OpReturn |
| 44 | OpFunctionEnd |