| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 16 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %in_block "in_block" |
| OpMemberName %in_block 0 "inner" |
| OpName %in "in" |
| OpName %out "out" |
| OpName %main "main" |
| OpDecorate %in_block Block |
| OpMemberDecorate %in_block 0 Offset 0 |
| OpDecorate %in NonWritable |
| OpDecorate %in DescriptorSet 0 |
| OpDecorate %in Binding 0 |
| OpDecorate %out DescriptorSet 0 |
| OpDecorate %out Binding 1 |
| %int = OpTypeInt 32 1 |
| %in_block = OpTypeStruct %int |
| %_ptr_StorageBuffer_in_block = OpTypePointer StorageBuffer %in_block |
| %in = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer |
| %out = OpVariable %_ptr_StorageBuffer_in_block StorageBuffer |
| %void = OpTypeVoid |
| %6 = OpTypeFunction %void |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| %main = OpFunction %void None %6 |
| %9 = OpLabel |
| %13 = OpAccessChain %_ptr_StorageBuffer_int %out %uint_0 |
| %14 = OpAccessChain %_ptr_StorageBuffer_int %in %uint_0 |
| %15 = OpLoad %int %14 |
| OpStore %13 %15 |
| OpReturn |
| OpFunctionEnd |