blob: 490a6a31a1052d3d030ea5bc654dd4c03ad7e35f [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 31
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpMemberName %tint_symbol_1 0 "tint_symbol"
OpName %tint_symbol_1 "tint_symbol_1"
OpName %main "main"
OpName %unused_entry_point "unused_entry_point"
OpMemberDecorate %tint_symbol_1 0 Offset 0
OpDecorate %tint_symbol_1 Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 Coherent
%uint = OpTypeInt 32 0
%v4uint = OpTypeVector %uint 4
%tint_symbol_1 = OpTypeStruct %v4uint
%_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1
%1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer
%void = OpTypeVoid
%8 = OpTypeFunction %void
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%main = OpFunction %void None %8
%9 = OpLabel
%10 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
%13 = OpAccessChain %_ptr_StorageBuffer_uint %10 %int_1
%17 = OpLoad %uint %13 None
%18 = OpIAdd %uint %17 %uint_1
%20 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
%21 = OpAccessChain %_ptr_StorageBuffer_uint %20 %int_1
OpStore %21 %18 None
%22 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
%23 = OpAccessChain %_ptr_StorageBuffer_uint %22 %uint_2
%25 = OpLoad %uint %23 None
%26 = OpIAdd %uint %25 %uint_1
%27 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
%28 = OpAccessChain %_ptr_StorageBuffer_uint %27 %uint_2
OpStore %28 %26 None
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %8
%30 = OpLabel
OpReturn
OpFunctionEnd