blob: 0e03fb8bab73dca1e449adc7b5e723f833ef8c6c [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 19
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %buffer_block "buffer_block"
OpMemberName %buffer_block 0 "inner"
OpName %Buffer "Buffer"
OpMemberName %Buffer 0 "data"
OpName %buffer "buffer"
OpName %unused_entry_point "unused_entry_point"
OpName %main "main"
OpDecorate %buffer_block Block
OpMemberDecorate %buffer_block 0 Offset 0
OpMemberDecorate %Buffer 0 Offset 0
OpDecorate %buffer DescriptorSet 0
OpDecorate %buffer Binding 0
%uint = OpTypeInt 32 0
%Buffer = OpTypeStruct %uint
%buffer_block = OpTypeStruct %Buffer
%_ptr_StorageBuffer_buffer_block = OpTypePointer StorageBuffer %buffer_block
%buffer = OpVariable %_ptr_StorageBuffer_buffer_block StorageBuffer
%void = OpTypeVoid
%6 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%uint_1 = OpConstant %uint 1
%unused_entry_point = OpFunction %void None %6
%9 = OpLabel
OpReturn
OpFunctionEnd
%main = OpFunction %void None %6
%11 = OpLabel
%14 = OpAccessChain %_ptr_StorageBuffer_uint %buffer %uint_0 %uint_0
%15 = OpAccessChain %_ptr_StorageBuffer_uint %buffer %uint_0 %uint_0
%16 = OpLoad %uint %15
%18 = OpIAdd %uint %16 %uint_1
OpStore %14 %18
OpReturn
OpFunctionEnd