blob: dccee89ef5229545d9259ee64d7a5c2f51bcfc30 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 27
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %s_block "s_block"
OpMemberName %s_block 0 "inner"
OpName %s "s"
OpName %a "a"
OpName %_a "_a"
OpName %f "f"
OpName %b "b"
OpName %_b "_b"
OpDecorate %s_block Block
OpMemberDecorate %s_block 0 Offset 0
OpDecorate %s DescriptorSet 0
OpDecorate %s Binding 0
%int = OpTypeInt 32 1
%s_block = OpTypeStruct %int
%_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block
%s = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer
%int_1 = OpConstant %int 1
%_ptr_Private_int = OpTypePointer Private %int
%a = OpVariable %_ptr_Private_int Private %int_1
%int_2 = OpConstant %int 2
%_a = OpVariable %_ptr_Private_int Private %int_2
%void = OpTypeVoid
%10 = OpTypeFunction %void
%_ptr_Function_int = OpTypePointer Function %int
%17 = OpConstantNull %int
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%f = OpFunction %void None %10
%13 = OpLabel
%b = OpVariable %_ptr_Function_int Function %17
%_b = OpVariable %_ptr_Function_int Function %17
%14 = OpLoad %int %a
OpStore %b %14
%18 = OpLoad %int %_a
OpStore %_b %18
%23 = OpAccessChain %_ptr_StorageBuffer_int %s %uint_0
%24 = OpLoad %int %b
%25 = OpLoad %int %_b
%26 = OpIAdd %int %24 %25
OpStore %23 %26
OpReturn
OpFunctionEnd