| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 97 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpName %u_block_std140 "u_block_std140" |
| OpMemberName %u_block_std140 0 "inner" |
| OpName %mat4x2_f32 "mat4x2_f32" |
| OpMemberName %mat4x2_f32 0 "col0" |
| OpMemberName %mat4x2_f32 1 "col1" |
| OpMemberName %mat4x2_f32 2 "col2" |
| OpMemberName %mat4x2_f32 3 "col3" |
| OpName %u "u" |
| 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 %conv_mat4x2_f32 "conv_mat4x2_f32" |
| OpName %val "val" |
| OpName %conv_arr4_mat4x2_f32 "conv_arr4_mat4x2_f32" |
| OpName %val_0 "val" |
| OpName %arr "arr" |
| OpName %i "i" |
| OpName %var_for_index "var_for_index" |
| OpName %f "f" |
| OpDecorate %u_block_std140 Block |
| OpMemberDecorate %u_block_std140 0 Offset 0 |
| OpMemberDecorate %mat4x2_f32 0 Offset 0 |
| OpMemberDecorate %mat4x2_f32 1 Offset 8 |
| OpMemberDecorate %mat4x2_f32 2 Offset 16 |
| OpMemberDecorate %mat4x2_f32 3 Offset 24 |
| OpDecorate %_arr_mat4x2_f32_uint_4 ArrayStride 32 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| OpDecorate %_arr_mat4v2float_uint_4 ArrayStride 32 |
| %float = OpTypeFloat 32 |
| %v2float = OpTypeVector %float 2 |
| %mat4x2_f32 = OpTypeStruct %v2float %v2float %v2float %v2float |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_mat4x2_f32_uint_4 = OpTypeArray %mat4x2_f32 %uint_4 |
| %u_block_std140 = OpTypeStruct %_arr_mat4x2_f32_uint_4 |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %u = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %void = OpTypeVoid |
| %mat4v2float = OpTypeMatrix %v2float 4 |
| %_arr_mat4v2float_uint_4 = OpTypeArray %mat4v2float %uint_4 |
| %10 = OpTypeFunction %void %_arr_mat4v2float_uint_4 |
| %17 = OpTypeFunction %void %mat4v2float |
| %21 = OpTypeFunction %void %v2float |
| %25 = OpTypeFunction %void %float |
| %29 = OpTypeFunction %mat4v2float %mat4x2_f32 |
| %38 = OpTypeFunction %_arr_mat4v2float_uint_4 %_arr_mat4x2_f32_uint_4 |
| %_ptr_Function__arr_mat4v2float_uint_4 = OpTypePointer Function %_arr_mat4v2float_uint_4 |
| %44 = OpConstantNull %_arr_mat4v2float_uint_4 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %47 = OpConstantNull %uint |
| %bool = OpTypeBool |
| %_ptr_Function__arr_mat4x2_f32_uint_4 = OpTypePointer Function %_arr_mat4x2_f32_uint_4 |
| %60 = OpConstantNull %_arr_mat4x2_f32_uint_4 |
| %_ptr_Function_mat4v2float = OpTypePointer Function %mat4v2float |
| %_ptr_Function_mat4x2_f32 = OpTypePointer Function %mat4x2_f32 |
| %uint_1 = OpConstant %uint 1 |
| %73 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform__arr_mat4x2_f32_uint_4 = OpTypePointer Uniform %_arr_mat4x2_f32_uint_4 |
| %_ptr_Uniform_mat4x2_f32 = OpTypePointer Uniform %mat4x2_f32 |
| %_ptr_Uniform_v2float = OpTypePointer Uniform %v2float |
| %a = OpFunction %void None %10 |
| %a_1 = OpFunctionParameter %_arr_mat4v2float_uint_4 |
| %16 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %b = OpFunction %void None %17 |
| %m = OpFunctionParameter %mat4v2float |
| %20 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %c = OpFunction %void None %21 |
| %v = OpFunctionParameter %v2float |
| %24 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %d = OpFunction %void None %25 |
| %f_1 = OpFunctionParameter %float |
| %28 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %conv_mat4x2_f32 = OpFunction %mat4v2float None %29 |
| %val = OpFunctionParameter %mat4x2_f32 |
| %32 = OpLabel |
| %33 = OpCompositeExtract %v2float %val 0 |
| %34 = OpCompositeExtract %v2float %val 1 |
| %35 = OpCompositeExtract %v2float %val 2 |
| %36 = OpCompositeExtract %v2float %val 3 |
| %37 = OpCompositeConstruct %mat4v2float %33 %34 %35 %36 |
| OpReturnValue %37 |
| OpFunctionEnd |
| %conv_arr4_mat4x2_f32 = OpFunction %_arr_mat4v2float_uint_4 None %38 |
| %val_0 = OpFunctionParameter %_arr_mat4x2_f32_uint_4 |
| %41 = OpLabel |
| %arr = OpVariable %_ptr_Function__arr_mat4v2float_uint_4 Function %44 |
| %i = OpVariable %_ptr_Function_uint Function %47 |
| %var_for_index = OpVariable %_ptr_Function__arr_mat4x2_f32_uint_4 Function %60 |
| OpBranch %48 |
| %48 = OpLabel |
| OpLoopMerge %49 %50 None |
| OpBranch %51 |
| %51 = OpLabel |
| %53 = OpLoad %uint %i |
| %54 = OpULessThan %bool %53 %uint_4 |
| %52 = OpLogicalNot %bool %54 |
| OpSelectionMerge %56 None |
| OpBranchConditional %52 %57 %56 |
| %57 = OpLabel |
| OpBranch %49 |
| %56 = OpLabel |
| OpStore %var_for_index %val_0 |
| %61 = OpLoad %uint %i |
| %63 = OpAccessChain %_ptr_Function_mat4v2float %arr %61 |
| %65 = OpLoad %uint %i |
| %67 = OpAccessChain %_ptr_Function_mat4x2_f32 %var_for_index %65 |
| %68 = OpLoad %mat4x2_f32 %67 |
| %64 = OpFunctionCall %mat4v2float %conv_mat4x2_f32 %68 |
| OpStore %63 %64 |
| OpBranch %50 |
| %50 = OpLabel |
| %69 = OpLoad %uint %i |
| %71 = OpIAdd %uint %69 %uint_1 |
| OpStore %i %71 |
| OpBranch %48 |
| %49 = OpLabel |
| %72 = OpLoad %_arr_mat4v2float_uint_4 %arr |
| OpReturnValue %72 |
| OpFunctionEnd |
| %f = OpFunction %void None %73 |
| %75 = OpLabel |
| %80 = OpAccessChain %_ptr_Uniform__arr_mat4x2_f32_uint_4 %u %uint_0 |
| %81 = OpLoad %_arr_mat4x2_f32_uint_4 %80 |
| %77 = OpFunctionCall %_arr_mat4v2float_uint_4 %conv_arr4_mat4x2_f32 %81 |
| %76 = OpFunctionCall %void %a %77 |
| %85 = OpAccessChain %_ptr_Uniform_mat4x2_f32 %u %uint_0 %uint_1 |
| %86 = OpLoad %mat4x2_f32 %85 |
| %83 = OpFunctionCall %mat4v2float %conv_mat4x2_f32 %86 |
| %82 = OpFunctionCall %void %b %83 |
| %89 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0 %uint_1 %uint_0 |
| %90 = OpLoad %v2float %89 |
| %91 = OpVectorShuffle %v2float %90 %90 1 0 |
| %87 = OpFunctionCall %void %c %91 |
| %93 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0 %uint_1 %uint_0 |
| %94 = OpLoad %v2float %93 |
| %95 = OpVectorShuffle %v2float %94 %94 1 0 |
| %96 = OpCompositeExtract %float %95 0 |
| %92 = OpFunctionCall %void %d %96 |
| OpReturn |
| OpFunctionEnd |