| ; 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 |