1; SPIR-V 2; Version: 1.3 3; Generator: Google Tint Compiler; 0 4; Bound: 24 5; Schema: 0 6 OpCapability Shader 7 OpMemoryModel Logical GLSL450 8 OpEntryPoint Fragment %fragment_main "fragment_main" 9 OpEntryPoint GLCompute %compute_main "compute_main" 10 OpExecutionMode %fragment_main OriginUpperLeft 11 OpExecutionMode %compute_main LocalSize 1 1 1 12 OpName %SB_RW "SB_RW" 13 OpMemberName %SB_RW 0 "arg_0" 14 OpName %sb_rw "sb_rw" 15 OpName %atomicMin_c67a74 "atomicMin_c67a74" 16 OpName %res "res" 17 OpName %fragment_main "fragment_main" 18 OpName %compute_main "compute_main" 19 OpDecorate %SB_RW Block 20 OpMemberDecorate %SB_RW 0 Offset 0 21 OpDecorate %sb_rw DescriptorSet 0 22 OpDecorate %sb_rw Binding 0 23 %uint = OpTypeInt 32 0 24 %SB_RW = OpTypeStruct %uint 25%_ptr_StorageBuffer_SB_RW = OpTypePointer StorageBuffer %SB_RW 26 %sb_rw = OpVariable %_ptr_StorageBuffer_SB_RW StorageBuffer 27 %void = OpTypeVoid 28 %5 = OpTypeFunction %void 29 %uint_1 = OpConstant %uint 1 30 %uint_0 = OpConstant %uint 0 31%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint 32%_ptr_Function_uint = OpTypePointer Function %uint 33 %17 = OpConstantNull %uint 34%atomicMin_c67a74 = OpFunction %void None %5 35 %8 = OpLabel 36 %res = OpVariable %_ptr_Function_uint Function %17 37 %14 = OpAccessChain %_ptr_StorageBuffer_uint %sb_rw %uint_0 38 %9 = OpAtomicUMin %uint %14 %uint_1 %uint_0 %uint_1 39 OpStore %res %9 40 OpReturn 41 OpFunctionEnd 42%fragment_main = OpFunction %void None %5 43 %19 = OpLabel 44 %20 = OpFunctionCall %void %atomicMin_c67a74 45 OpReturn 46 OpFunctionEnd 47%compute_main = OpFunction %void None %5 48 %22 = OpLabel 49 %23 = OpFunctionCall %void %atomicMin_c67a74 50 OpReturn 51 OpFunctionEnd 52