blob: b6f60de73a2f1afefc0065e0d8c77f0ad3359f5e [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 29
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpMemberName %a_block 0 "inner"
OpName %a_block "a_block"
OpName %main "main"
OpName %unused_entry_point "unused_entry_point"
OpMemberDecorate %a_block 0 Offset 0
OpDecorate %a_block Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 Coherent
%uint = OpTypeInt 32 0
%v4uint = OpTypeVector %uint 4
%a_block = OpTypeStruct %v4uint
%_ptr_StorageBuffer_a_block = OpTypePointer StorageBuffer %a_block
%1 = OpVariable %_ptr_StorageBuffer_a_block StorageBuffer
%void = OpTypeVoid
%8 = OpTypeFunction %void
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%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 %uint_1
%16 = OpLoad %uint %13 None
%17 = OpISub %uint %16 %uint_1
%18 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
%19 = OpAccessChain %_ptr_StorageBuffer_uint %18 %uint_1
OpStore %19 %17 None
%20 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
%21 = OpAccessChain %_ptr_StorageBuffer_uint %20 %uint_2
%23 = OpLoad %uint %21 None
%24 = OpISub %uint %23 %uint_1
%25 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0
%26 = OpAccessChain %_ptr_StorageBuffer_uint %25 %uint_2
OpStore %26 %24 None
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %8
%28 = OpLabel
OpReturn
OpFunctionEnd