dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 1 |
| 4 | ; Bound: 20 |
| 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 |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 10 | OpMemberName %a_block 0 "inner" |
| 11 | OpName %a_block "a_block" |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 12 | OpName %main "main" |
| 13 | OpName %unused_entry_point "unused_entry_point" |
| 14 | OpDecorate %_runtimearr_uint ArrayStride 4 |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 15 | OpMemberDecorate %a_block 0 Offset 0 |
| 16 | OpDecorate %a_block Block |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 17 | OpDecorate %1 DescriptorSet 0 |
| 18 | OpDecorate %1 Binding 0 |
dan sinclair | d117d65 | 2024-08-21 01:20:00 +0000 | [diff] [blame] | 19 | OpDecorate %1 Coherent |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 20 | %uint = OpTypeInt 32 0 |
| 21 | %_runtimearr_uint = OpTypeRuntimeArray %uint |
James Price | 71c1d54 | 2024-10-10 23:01:19 +0000 | [diff] [blame] | 22 | %a_block = OpTypeStruct %_runtimearr_uint |
| 23 | %_ptr_StorageBuffer_a_block = OpTypePointer StorageBuffer %a_block |
| 24 | %1 = OpVariable %_ptr_StorageBuffer_a_block StorageBuffer |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 25 | %void = OpTypeVoid |
| 26 | %8 = OpTypeFunction %void |
| 27 | %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| 28 | %uint_0 = OpConstant %uint 0 |
| 29 | %int = OpTypeInt 32 1 |
| 30 | %int_1 = OpConstant %int 1 |
| 31 | %uint_1 = OpConstant %uint 1 |
| 32 | %main = OpFunction %void None %8 |
| 33 | %9 = OpLabel |
| 34 | %10 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 %int_1 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 35 | %15 = OpLoad %uint %10 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 36 | %16 = OpISub %uint %15 %uint_1 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 37 | OpStore %10 %16 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 38 | OpReturn |
| 39 | OpFunctionEnd |
| 40 | %unused_entry_point = OpFunction %void None %8 |
| 41 | %19 = OpLabel |
| 42 | OpReturn |
| 43 | OpFunctionEnd |