| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 44 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpName %u_block "u_block" |
| OpMemberName %u_block 0 "inner" |
| OpName %S "S" |
| OpMemberName %S 0 "before" |
| OpMemberName %S 1 "m" |
| OpMemberName %S 2 "after" |
| OpName %u "u" |
| OpName %p "p" |
| OpName %f "f" |
| OpDecorate %u_block Block |
| OpMemberDecorate %u_block 0 Offset 0 |
| OpMemberDecorate %S 0 Offset 0 |
| OpMemberDecorate %S 1 Offset 16 |
| OpMemberDecorate %S 1 ColMajor |
| OpMemberDecorate %S 1 MatrixStride 16 |
| OpMemberDecorate %S 2 Offset 64 |
| OpDecorate %_arr_S_uint_4 ArrayStride 128 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| %int = OpTypeInt 32 1 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %mat2v4float = OpTypeMatrix %v4float 2 |
| %S = OpTypeStruct %int %mat2v4float %int |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_S_uint_4 = OpTypeArray %S %uint_4 |
| %u_block = OpTypeStruct %_arr_S_uint_4 |
| %_ptr_Uniform_u_block = OpTypePointer Uniform %u_block |
| %u = OpVariable %_ptr_Uniform_u_block Uniform |
| %_ptr_Private__arr_S_uint_4 = OpTypePointer Private %_arr_S_uint_4 |
| %14 = OpConstantNull %_arr_S_uint_4 |
| %p = OpVariable %_ptr_Private__arr_S_uint_4 Private %14 |
| %void = OpTypeVoid |
| %15 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform__arr_S_uint_4 = OpTypePointer Uniform %_arr_S_uint_4 |
| %int_1 = OpConstant %int 1 |
| %_ptr_Private_S = OpTypePointer Private %S |
| %int_2 = OpConstant %int 2 |
| %_ptr_Uniform_S = OpTypePointer Uniform %S |
| %int_3 = OpConstant %int 3 |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_Private_mat2v4float = OpTypePointer Private %mat2v4float |
| %_ptr_Uniform_mat2v4float = OpTypePointer Uniform %mat2v4float |
| %37 = OpConstantNull %int |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| %f = OpFunction %void None %15 |
| %18 = OpLabel |
| %21 = OpAccessChain %_ptr_Uniform__arr_S_uint_4 %u %uint_0 |
| %22 = OpLoad %_arr_S_uint_4 %21 |
| OpStore %p %22 |
| %25 = OpAccessChain %_ptr_Private_S %p %int_1 |
| %28 = OpAccessChain %_ptr_Uniform_S %u %uint_0 %int_2 |
| %29 = OpLoad %S %28 |
| OpStore %25 %29 |
| %33 = OpAccessChain %_ptr_Private_mat2v4float %p %int_3 %uint_1 |
| %35 = OpAccessChain %_ptr_Uniform_mat2v4float %u %uint_0 %int_2 %uint_1 |
| %36 = OpLoad %mat2v4float %35 |
| OpStore %33 %36 |
| %39 = OpAccessChain %_ptr_Private_v4float %p %int_1 %uint_1 %37 |
| %41 = OpAccessChain %_ptr_Uniform_v4float %u %uint_0 %37 %uint_1 %int_1 |
| %42 = OpLoad %v4float %41 |
| %43 = OpVectorShuffle %v4float %42 %42 1 3 0 2 |
| OpStore %39 %43 |
| OpReturn |
| OpFunctionEnd |