| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 66 |
| ; 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_block "s_block" |
| OpMemberName %s_block 0 "inner" |
| OpName %s "s" |
| OpName %a "a" |
| OpName %a_1 "a_1" |
| OpName %b "b" |
| OpName %m "m" |
| OpName %c "c" |
| OpName %v "v" |
| OpName %d "d" |
| OpName %f_1 "f_1" |
| 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_mat2v3float_uint_4 ArrayStride 32 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| OpDecorate %s_block Block |
| OpMemberDecorate %s_block 0 Offset 0 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %s Binding 1 |
| %float = OpTypeFloat 32 |
| %v3float = OpTypeVector %float 3 |
| %mat2v3float = OpTypeMatrix %v3float 2 |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_mat2v3float_uint_4 = OpTypeArray %mat2v3float %uint_4 |
| %u_block = OpTypeStruct %_arr_mat2v3float_uint_4 |
| %_ptr_Uniform_u_block = OpTypePointer Uniform %u_block |
| %u = OpVariable %_ptr_Uniform_u_block Uniform |
| %s_block = OpTypeStruct %float |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block |
| %s = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer |
| %13 = OpTypeFunction %float %_arr_mat2v3float_uint_4 |
| %int = OpTypeInt 32 1 |
| %18 = OpConstantNull %int |
| %22 = OpTypeFunction %float %mat2v3float |
| %28 = OpTypeFunction %float %v3float |
| %33 = OpTypeFunction %float %float |
| %void = OpTypeVoid |
| %37 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform__arr_mat2v3float_uint_4 = OpTypePointer Uniform %_arr_mat2v3float_uint_4 |
| %int_1 = OpConstant %int 1 |
| %_ptr_Uniform_mat2v3float = OpTypePointer Uniform %mat2v3float |
| %_ptr_Uniform_v3float = OpTypePointer Uniform %v3float |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %a = OpFunction %float None %13 |
| %a_1 = OpFunctionParameter %_arr_mat2v3float_uint_4 |
| %16 = OpLabel |
| %19 = OpCompositeExtract %mat2v3float %a_1 0 |
| %20 = OpCompositeExtract %v3float %19 0 |
| %21 = OpCompositeExtract %float %20 0 |
| OpReturnValue %21 |
| OpFunctionEnd |
| %b = OpFunction %float None %22 |
| %m = OpFunctionParameter %mat2v3float |
| %25 = OpLabel |
| %26 = OpCompositeExtract %v3float %m 0 |
| %27 = OpCompositeExtract %float %26 0 |
| OpReturnValue %27 |
| OpFunctionEnd |
| %c = OpFunction %float None %28 |
| %v = OpFunctionParameter %v3float |
| %31 = OpLabel |
| %32 = OpCompositeExtract %float %v 0 |
| OpReturnValue %32 |
| OpFunctionEnd |
| %d = OpFunction %float None %33 |
| %f_1 = OpFunctionParameter %float |
| %36 = OpLabel |
| OpReturnValue %f_1 |
| OpFunctionEnd |
| %f = OpFunction %void None %37 |
| %40 = OpLabel |
| %44 = OpAccessChain %_ptr_Uniform__arr_mat2v3float_uint_4 %u %uint_0 |
| %45 = OpLoad %_arr_mat2v3float_uint_4 %44 |
| %41 = OpFunctionCall %float %a %45 |
| %49 = OpAccessChain %_ptr_Uniform_mat2v3float %u %uint_0 %int_1 |
| %50 = OpLoad %mat2v3float %49 |
| %46 = OpFunctionCall %float %b %50 |
| %53 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %int_1 %18 |
| %54 = OpLoad %v3float %53 |
| %55 = OpVectorShuffle %v3float %54 %54 2 0 1 |
| %51 = OpFunctionCall %float %c %55 |
| %57 = OpAccessChain %_ptr_Uniform_v3float %u %uint_0 %int_1 %18 |
| %58 = OpLoad %v3float %57 |
| %59 = OpVectorShuffle %v3float %58 %58 2 0 1 |
| %60 = OpCompositeExtract %float %59 0 |
| %56 = OpFunctionCall %float %d %60 |
| %62 = OpAccessChain %_ptr_StorageBuffer_float %s %uint_0 |
| %63 = OpFAdd %float %41 %46 |
| %64 = OpFAdd %float %63 %51 |
| %65 = OpFAdd %float %64 %56 |
| OpStore %62 %65 |
| OpReturn |
| OpFunctionEnd |