| ; 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 %Uniforms "Uniforms" |
| OpMemberName %Uniforms 0 "i" |
| OpName %uniforms "uniforms" |
| OpName %OuterS "OuterS" |
| OpMemberName %OuterS 0 "a1" |
| OpName %InnerS "InnerS" |
| OpMemberName %InnerS 0 "v" |
| OpName %s1 "s1" |
| OpName %main "main" |
| OpName %v "v" |
| OpDecorate %Uniforms Block |
| OpMemberDecorate %Uniforms 0 Offset 0 |
| OpDecorate %uniforms NonWritable |
| OpDecorate %uniforms DescriptorSet 1 |
| OpDecorate %uniforms Binding 4 |
| OpDecorate %OuterS Block |
| OpMemberDecorate %OuterS 0 Offset 0 |
| OpMemberDecorate %InnerS 0 Offset 0 |
| OpDecorate %_runtimearr_InnerS ArrayStride 4 |
| OpDecorate %s1 Binding 0 |
| OpDecorate %s1 DescriptorSet 0 |
| %uint = OpTypeInt 32 0 |
| %Uniforms = OpTypeStruct %uint |
| %_ptr_Uniform_Uniforms = OpTypePointer Uniform %Uniforms |
| %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform |
| %int = OpTypeInt 32 1 |
| %InnerS = OpTypeStruct %int |
| %_runtimearr_InnerS = OpTypeRuntimeArray %InnerS |
| %OuterS = OpTypeStruct %_runtimearr_InnerS |
| %_ptr_StorageBuffer_OuterS = OpTypePointer StorageBuffer %OuterS |
| %s1 = OpVariable %_ptr_StorageBuffer_OuterS StorageBuffer |
| %void = OpTypeVoid |
| %11 = OpTypeFunction %void |
| %_ptr_Function_InnerS = OpTypePointer Function %InnerS |
| %17 = OpConstantNull %InnerS |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_uint = OpTypePointer Uniform %uint |
| %_ptr_StorageBuffer_InnerS = OpTypePointer StorageBuffer %InnerS |
| %main = OpFunction %void None %11 |
| %14 = OpLabel |
| %v = OpVariable %_ptr_Function_InnerS Function %17 |
| %20 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0 |
| %21 = OpLoad %uint %20 |
| %23 = OpAccessChain %_ptr_StorageBuffer_InnerS %s1 %uint_0 %21 |
| %24 = OpLoad %InnerS %v |
| OpStore %23 %24 |
| OpReturn |
| OpFunctionEnd |