| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 42 |
| ; 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 %u "u" |
| OpName %s "s" |
| OpName %f "f" |
| OpDecorate %u_block Block |
| OpMemberDecorate %u_block 0 Offset 0 |
| OpMemberDecorate %u_block 0 ColMajor |
| OpMemberDecorate %u_block 0 MatrixStride 16 |
| OpDecorate %_arr_mat2v4float_uint_4 ArrayStride 32 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %s Binding 1 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %mat2v4float = OpTypeMatrix %v4float 2 |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_mat2v4float_uint_4 = OpTypeArray %mat2v4float %uint_4 |
| %u_block = OpTypeStruct %_arr_mat2v4float_uint_4 |
| %_ptr_Uniform_u_block = OpTypePointer Uniform %u_block |
| %u = OpVariable %_ptr_Uniform_u_block Uniform |
| %_ptr_StorageBuffer_u_block = OpTypePointer StorageBuffer %u_block |
| %s = OpVariable %_ptr_StorageBuffer_u_block StorageBuffer |
| %void = OpTypeVoid |
| %12 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer__arr_mat2v4float_uint_4 = OpTypePointer StorageBuffer %_arr_mat2v4float_uint_4 |
| %_ptr_Uniform__arr_mat2v4float_uint_4 = OpTypePointer Uniform %_arr_mat2v4float_uint_4 |
| %int = OpTypeInt 32 1 |
| %int_1 = OpConstant %int 1 |
| %_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float |
| %int_2 = OpConstant %int 2 |
| %_ptr_Uniform_mat2v4float = OpTypePointer Uniform %mat2v4float |
| %30 = OpConstantNull %int |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %_ptr_Uniform_float = OpTypePointer Uniform %float |
| %f = OpFunction %void None %12 |
| %15 = OpLabel |
| %18 = OpAccessChain %_ptr_StorageBuffer__arr_mat2v4float_uint_4 %s %uint_0 |
| %20 = OpAccessChain %_ptr_Uniform__arr_mat2v4float_uint_4 %u %uint_0 |
| %21 = OpLoad %_arr_mat2v4float_uint_4 %20 |
| OpStore %18 %21 |
| %25 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %s %uint_0 %int_1 |
| %28 = OpAccessChain %_ptr_Uniform_mat2v4float %u %uint_0 %int_2 |
| %29 = OpLoad %mat2v4float %28 |
| OpStore %25 %29 |
| %32 = OpAccessChain %_ptr_StorageBuffer_v4float %s %uint_0 %int_1 %30 |
| %34 = OpAccessChain %_ptr_Uniform_v4float %u %uint_0 %30 %int_1 |
| %35 = OpLoad %v4float %34 |
| %36 = OpVectorShuffle %v4float %35 %35 1 3 0 2 |
| OpStore %32 %36 |
| %38 = OpAccessChain %_ptr_StorageBuffer_float %s %uint_0 %int_1 %30 %uint_0 |
| %40 = OpAccessChain %_ptr_Uniform_float %u %uint_0 %30 %int_1 %uint_0 |
| %41 = OpLoad %float %40 |
| OpStore %38 %41 |
| OpReturn |
| OpFunctionEnd |