| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 21 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpCapability Int64 | |
| OpCapability Int64Atomics | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint Fragment %main "main" | |
| OpExecutionMode %main OriginUpperLeft | |
| OpMemberName %a_block 0 "inner" | |
| OpName %a_block "a_block" | |
| OpName %foo "foo" | |
| OpName %main "main" | |
| OpMemberDecorate %a_block 0 Offset 0 | |
| OpDecorate %a_block Block | |
| OpDecorate %1 DescriptorSet 0 | |
| OpDecorate %1 Binding 0 | |
| OpDecorate %1 Coherent | |
| %ulong = OpTypeInt 64 0 | |
| %a_block = OpTypeStruct %ulong | |
| %_ptr_StorageBuffer_a_block = OpTypePointer StorageBuffer %a_block | |
| %1 = OpVariable %_ptr_StorageBuffer_a_block StorageBuffer | |
| %void = OpTypeVoid | |
| %7 = OpTypeFunction %void | |
| %uint = OpTypeInt 32 0 | |
| %v2uint = OpTypeVector %uint 2 | |
| %10 = OpConstantNull %v2uint | |
| %_ptr_StorageBuffer_ulong = OpTypePointer StorageBuffer %ulong | |
| %uint_0 = OpConstant %uint 0 | |
| %uint_1 = OpConstant %uint 1 | |
| %foo = OpFunction %void None %7 | |
| %8 = OpLabel | |
| %9 = OpBitcast %ulong %10 | |
| %13 = OpAccessChain %_ptr_StorageBuffer_ulong %1 %uint_0 | |
| %16 = OpAtomicUMax %ulong %13 %uint_1 %uint_0 %9 | |
| OpReturn | |
| OpFunctionEnd | |
| %main = OpFunction %void None %7 | |
| %19 = OpLabel | |
| %20 = OpFunctionCall %void %foo | |
| OpReturn | |
| OpFunctionEnd |