| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 0 | |
| ; Bound: 25 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %main "main" | |
| OpExecutionMode %main LocalSize 1 1 1 | |
| OpName %S3 "S3" | |
| OpMemberName %S3 0 "s2" | |
| OpName %S2 "S2" | |
| OpMemberName %S2 0 "s1" | |
| OpName %S1 "S1" | |
| OpMemberName %S1 0 "i" | |
| OpName %P "P" | |
| OpName %out_block "out_block" | |
| OpMemberName %out_block 0 "inner" | |
| OpName %out "out" | |
| OpName %main "main" | |
| OpMemberDecorate %S3 0 Offset 0 | |
| OpMemberDecorate %S2 0 Offset 0 | |
| OpMemberDecorate %S1 0 Offset 0 | |
| OpDecorate %out_block Block | |
| OpMemberDecorate %out_block 0 Offset 0 | |
| OpDecorate %out DescriptorSet 0 | |
| OpDecorate %out Binding 0 | |
| %int = OpTypeInt 32 1 | |
| %S1 = OpTypeStruct %int | |
| %S2 = OpTypeStruct %S1 | |
| %S3 = OpTypeStruct %S2 | |
| %int_42 = OpConstant %int 42 | |
| %6 = OpConstantComposite %S1 %int_42 | |
| %7 = OpConstantComposite %S2 %6 | |
| %8 = OpConstantComposite %S3 %7 | |
| %_ptr_Private_S3 = OpTypePointer Private %S3 | |
| %P = OpVariable %_ptr_Private_S3 Private %8 | |
| %out_block = OpTypeStruct %int | |
| %_ptr_StorageBuffer_out_block = OpTypePointer StorageBuffer %out_block | |
| %out = OpVariable %_ptr_StorageBuffer_out_block StorageBuffer | |
| %void = OpTypeVoid | |
| %14 = OpTypeFunction %void | |
| %uint = OpTypeInt 32 0 | |
| %uint_0 = OpConstant %uint 0 | |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int | |
| %_ptr_Private_int = OpTypePointer Private %int | |
| %main = OpFunction %void None %14 | |
| %17 = OpLabel | |
| %21 = OpAccessChain %_ptr_StorageBuffer_int %out %uint_0 | |
| %23 = OpAccessChain %_ptr_Private_int %P %uint_0 %uint_0 %uint_0 | |
| %24 = OpLoad %int %23 | |
| OpStore %21 %24 | |
| OpReturn | |
| OpFunctionEnd |