blob: 1546903e50a204084231f417292d5b94127d4d25 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 33
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %sb_rw_block "sb_rw_block"
OpMemberName %sb_rw_block 0 "inner"
OpName %SB_RW_atomic "SB_RW_atomic"
OpMemberName %SB_RW_atomic 0 "arg_0"
OpName %sb_rw "sb_rw"
OpName %atomicOr_5e95d4 "atomicOr_5e95d4"
OpName %arg_1 "arg_1"
OpName %res "res"
OpName %fragment_main_1 "fragment_main_1"
OpName %fragment_main "fragment_main"
OpName %compute_main_1 "compute_main_1"
OpName %compute_main "compute_main"
OpDecorate %sb_rw_block Block
OpMemberDecorate %sb_rw_block 0 Offset 0
OpMemberDecorate %SB_RW_atomic 0 Offset 0
OpDecorate %sb_rw DescriptorSet 0
OpDecorate %sb_rw Binding 0
%uint = OpTypeInt 32 0
%SB_RW_atomic = OpTypeStruct %uint
%sb_rw_block = OpTypeStruct %SB_RW_atomic
%_ptr_StorageBuffer_sb_rw_block = OpTypePointer StorageBuffer %sb_rw_block
%sb_rw = OpVariable %_ptr_StorageBuffer_sb_rw_block StorageBuffer
%void = OpTypeVoid
%6 = OpTypeFunction %void
%10 = OpConstantNull %uint
%_ptr_Function_uint = OpTypePointer Function %uint
%uint_1 = OpConstant %uint 1
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%atomicOr_5e95d4 = OpFunction %void None %6
%9 = OpLabel
%arg_1 = OpVariable %_ptr_Function_uint Function %10
%res = OpVariable %_ptr_Function_uint Function %10
OpStore %arg_1 %10
OpStore %res %10
OpStore %arg_1 %uint_1
%15 = OpLoad %uint %arg_1
%20 = OpAccessChain %_ptr_StorageBuffer_uint %sb_rw %uint_0 %uint_0
%16 = OpAtomicOr %uint %20 %uint_1 %uint_0 %15
OpStore %res %16
OpReturn
OpFunctionEnd
%fragment_main_1 = OpFunction %void None %6
%22 = OpLabel
%23 = OpFunctionCall %void %atomicOr_5e95d4
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %6
%25 = OpLabel
%26 = OpFunctionCall %void %fragment_main_1
OpReturn
OpFunctionEnd
%compute_main_1 = OpFunction %void None %6
%28 = OpLabel
%29 = OpFunctionCall %void %atomicOr_5e95d4
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %6
%31 = OpLabel
%32 = OpFunctionCall %void %compute_main_1
OpReturn
OpFunctionEnd