| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 38 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpCapability Int64 | |
| OpCapability Int64Atomics | |
| %33 = 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" | |
| OpName %in_vec "in_vec" | |
| 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 | |
| %v2uint = OpTypeVector %uint 2 | |
| %_ptr_Function_v2uint = OpTypePointer Function %v2uint | |
| %uint_1 = OpConstant %uint 1 | |
| %uint_2 = OpConstant %uint 2 | |
| %19 = OpConstantComposite %v2uint %uint_1 %uint_2 | |
| %_ptr_StorageBuffer_ulong = OpTypePointer StorageBuffer %ulong | |
| %uint_0 = OpConstant %uint 0 | |
| %_ptr_StorageBuffer__runtimearr_ulong = OpTypePointer StorageBuffer %_runtimearr_ulong | |
| %compute_main = OpFunction %void None %14 | |
| %15 = OpLabel | |
| %in_vec = OpVariable %_ptr_Function_v2uint Function | |
| OpStore %in_vec %19 | |
| %22 = OpAccessChain %_ptr_StorageBuffer_ulong %1 %uint_0 %uint_1 | |
| %25 = OpLoad %v2uint %in_vec None | |
| %26 = OpBitcast %ulong %25 | |
| %27 = OpAtomicUMax %ulong %22 %uint_1 %uint_0 %26 | |
| %28 = OpAccessChain %_ptr_StorageBuffer__runtimearr_ulong %8 %uint_0 | |
| %30 = OpArrayLength %uint %8 0 | |
| %31 = OpISub %uint %30 %uint_1 | |
| %32 = OpExtInst %uint %33 UMin %uint_1 %31 | |
| %34 = OpAccessChain %_ptr_StorageBuffer_ulong %8 %uint_0 %32 | |
| %35 = OpLoad %v2uint %in_vec None | |
| %36 = OpBitcast %ulong %35 | |
| %37 = OpAtomicUMax %ulong %34 %uint_1 %uint_0 %36 | |
| OpReturn | |
| OpFunctionEnd |