| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 21 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpName %S_block "S_block" |
| OpMemberName %S_block 0 "inner" |
| OpName %str "str" |
| OpMemberName %str 0 "arr" |
| OpName %S "S" |
| OpName %func_S_arr "func_S_arr" |
| OpName %main "main" |
| OpDecorate %S_block Block |
| OpMemberDecorate %S_block 0 Offset 0 |
| OpMemberDecorate %str 0 Offset 0 |
| OpDecorate %_arr_int_uint_4 ArrayStride 4 |
| OpDecorate %S NonWritable |
| OpDecorate %S DescriptorSet 0 |
| OpDecorate %S Binding 0 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_int_uint_4 = OpTypeArray %int %uint_4 |
| %str = OpTypeStruct %_arr_int_uint_4 |
| %S_block = OpTypeStruct %str |
| %_ptr_StorageBuffer_S_block = OpTypePointer StorageBuffer %S_block |
| %S = OpVariable %_ptr_StorageBuffer_S_block StorageBuffer |
| %9 = OpTypeFunction %_arr_int_uint_4 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer__arr_int_uint_4 = OpTypePointer StorageBuffer %_arr_int_uint_4 |
| %void = OpTypeVoid |
| %16 = OpTypeFunction %void |
| %func_S_arr = OpFunction %_arr_int_uint_4 None %9 |
| %11 = OpLabel |
| %14 = OpAccessChain %_ptr_StorageBuffer__arr_int_uint_4 %S %uint_0 %uint_0 |
| %15 = OpLoad %_arr_int_uint_4 %14 |
| OpReturnValue %15 |
| OpFunctionEnd |
| %main = OpFunction %void None %16 |
| %19 = OpLabel |
| %20 = OpFunctionCall %_arr_int_uint_4 %func_S_arr |
| OpReturn |
| OpFunctionEnd |