| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 33 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpCapability Int64 | |
| OpCapability Int64Atomics | |
| %29 = OpExtInstImport "GLSL.std.450" | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %compute_main "compute_main" | |
| OpExecutionMode %compute_main LocalSize 1 1 1 | |
| OpMemberName %sb_rw0_block_tint_explicit_layout 0 "inner" | |
| OpName %sb_rw0_block_tint_explicit_layout "sb_rw0_block_tint_explicit_layout" | |
| OpMemberName %sb_rw1_block_tint_explicit_layout 0 "inner" | |
| OpName %sb_rw1_block_tint_explicit_layout "sb_rw1_block_tint_explicit_layout" | |
| OpName %compute_main "compute_main" | |
| OpDecorate %_arr_ulong_uint_4 ArrayStride 8 | |
| OpMemberDecorate %sb_rw0_block_tint_explicit_layout 0 Offset 0 | |
| OpDecorate %sb_rw0_block_tint_explicit_layout Block | |
| OpDecorate %1 DescriptorSet 0 | |
| OpDecorate %1 Binding 0 | |
| OpDecorate %1 Coherent | |
| OpDecorate %_runtimearr_ulong ArrayStride 8 | |
| OpMemberDecorate %sb_rw1_block_tint_explicit_layout 0 Offset 0 | |
| OpDecorate %sb_rw1_block_tint_explicit_layout Block | |
| OpDecorate %8 DescriptorSet 0 | |
| OpDecorate %8 Binding 1 | |
| OpDecorate %8 Coherent | |
| %ulong = OpTypeInt 64 0 | |
| %uint = OpTypeInt 32 0 | |
| %uint_4 = OpConstant %uint 4 | |
| %_arr_ulong_uint_4 = OpTypeArray %ulong %uint_4 | |
| %sb_rw0_block_tint_explicit_layout = OpTypeStruct %_arr_ulong_uint_4 | |
| %_ptr_StorageBuffer_sb_rw0_block_tint_explicit_layout = OpTypePointer StorageBuffer %sb_rw0_block_tint_explicit_layout | |
| %1 = OpVariable %_ptr_StorageBuffer_sb_rw0_block_tint_explicit_layout StorageBuffer | |
| %_runtimearr_ulong = OpTypeRuntimeArray %ulong | |
| %sb_rw1_block_tint_explicit_layout = OpTypeStruct %_runtimearr_ulong | |
| %_ptr_StorageBuffer_sb_rw1_block_tint_explicit_layout = OpTypePointer StorageBuffer %sb_rw1_block_tint_explicit_layout | |
| %8 = OpVariable %_ptr_StorageBuffer_sb_rw1_block_tint_explicit_layout StorageBuffer | |
| %void = OpTypeVoid | |
| %14 = OpTypeFunction %void | |
| %_ptr_StorageBuffer_ulong = OpTypePointer StorageBuffer %ulong | |
| %uint_0 = OpConstant %uint 0 | |
| %v2uint = OpTypeVector %uint 2 | |
| %uint_1 = OpConstant %uint 1 | |
| %20 = OpConstantComposite %v2uint %uint_1 %uint_1 | |
| %_ptr_StorageBuffer__runtimearr_ulong = OpTypePointer StorageBuffer %_runtimearr_ulong | |
| %compute_main = OpFunction %void None %14 | |
| %15 = OpLabel | |
| %16 = OpAccessChain %_ptr_StorageBuffer_ulong %1 %uint_0 %uint_0 | |
| %19 = OpBitcast %ulong %20 | |
| %23 = OpAtomicUMin %ulong %16 %uint_1 %uint_0 %19 | |
| %24 = OpAccessChain %_ptr_StorageBuffer__runtimearr_ulong %8 %uint_0 | |
| %26 = OpArrayLength %uint %8 0 | |
| %27 = OpISub %uint %26 %uint_1 | |
| %28 = OpExtInst %uint %29 UMin %uint_0 %27 | |
| %30 = OpAccessChain %_ptr_StorageBuffer_ulong %8 %uint_0 %28 | |
| %31 = OpBitcast %ulong %20 | |
| %32 = OpAtomicUMin %ulong %30 %uint_1 %uint_0 %31 | |
| OpReturn | |
| OpFunctionEnd |