| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 123 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability Float16 |
| OpCapability UniformAndStorageBuffer16BitAccess |
| OpCapability StorageBuffer16BitAccess |
| OpCapability StorageInputOutput16 |
| 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 %mat2x3_f16 "mat2x3_f16" |
| OpMemberName %mat2x3_f16 0 "col0" |
| OpMemberName %mat2x3_f16 1 "col1" |
| OpName %u "u" |
| OpName %u_block "u_block" |
| OpMemberName %u_block 0 "inner" |
| OpName %s "s" |
| OpName %assign_and_preserve_padding_1_s_X "assign_and_preserve_padding_1_s_X" |
| OpName %dest "dest" |
| OpName %value "value" |
| OpName %assign_and_preserve_padding_s "assign_and_preserve_padding_s" |
| OpName %value_0 "value" |
| OpName %i "i" |
| OpName %var_for_index "var_for_index" |
| OpName %conv_mat2x3_f16 "conv_mat2x3_f16" |
| OpName %val "val" |
| OpName %conv_arr4_mat2x3_f16 "conv_arr4_mat2x3_f16" |
| OpName %val_0 "val" |
| OpName %arr "arr" |
| OpName %i_0 "i" |
| OpName %var_for_index_1 "var_for_index_1" |
| OpName %f "f" |
| OpDecorate %u_block_std140 Block |
| OpMemberDecorate %u_block_std140 0 Offset 0 |
| OpMemberDecorate %mat2x3_f16 0 Offset 0 |
| OpMemberDecorate %mat2x3_f16 1 Offset 8 |
| OpDecorate %_arr_mat2x3_f16_uint_4 ArrayStride 16 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| OpDecorate %u_block Block |
| OpMemberDecorate %u_block 0 Offset 0 |
| OpMemberDecorate %u_block 0 ColMajor |
| OpMemberDecorate %u_block 0 MatrixStride 8 |
| OpDecorate %_arr_mat2v3half_uint_4 ArrayStride 16 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %s Binding 1 |
| OpDecorate %_arr_uint_uint_1 ArrayStride 4 |
| %half = OpTypeFloat 16 |
| %v3half = OpTypeVector %half 3 |
| %mat2x3_f16 = OpTypeStruct %v3half %v3half |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_mat2x3_f16_uint_4 = OpTypeArray %mat2x3_f16 %uint_4 |
| %u_block_std140 = OpTypeStruct %_arr_mat2x3_f16_uint_4 |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %u = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %mat2v3half = OpTypeMatrix %v3half 2 |
| %_arr_mat2v3half_uint_4 = OpTypeArray %mat2v3half %uint_4 |
| %u_block = OpTypeStruct %_arr_mat2v3half_uint_4 |
| %_ptr_StorageBuffer_u_block = OpTypePointer StorageBuffer %u_block |
| %s = OpVariable %_ptr_StorageBuffer_u_block StorageBuffer |
| %void = OpTypeVoid |
| %uint_1 = OpConstant %uint 1 |
| %_arr_uint_uint_1 = OpTypeArray %uint %uint_1 |
| %15 = OpTypeFunction %void %_arr_uint_uint_1 %mat2v3half |
| %uint_0 = OpConstant %uint 0 |
| %int = OpTypeInt 32 1 |
| %25 = OpConstantNull %int |
| %_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half |
| %29 = OpConstantNull %uint |
| %int_1 = OpConstant %int 1 |
| %35 = OpTypeFunction %void %_arr_mat2v3half_uint_4 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %bool = OpTypeBool |
| %_ptr_Function__arr_mat2v3half_uint_4 = OpTypePointer Function %_arr_mat2v3half_uint_4 |
| %53 = OpConstantNull %_arr_mat2v3half_uint_4 |
| %_ptr_Function_mat2v3half = OpTypePointer Function %mat2v3half |
| %63 = OpTypeFunction %mat2v3half %mat2x3_f16 |
| %70 = OpTypeFunction %_arr_mat2v3half_uint_4 %_arr_mat2x3_f16_uint_4 |
| %_ptr_Function__arr_mat2x3_f16_uint_4 = OpTypePointer Function %_arr_mat2x3_f16_uint_4 |
| %87 = OpConstantNull %_arr_mat2x3_f16_uint_4 |
| %_ptr_Function_mat2x3_f16 = OpTypePointer Function %mat2x3_f16 |
| %98 = OpTypeFunction %void |
| %_ptr_Uniform__arr_mat2x3_f16_uint_4 = OpTypePointer Uniform %_arr_mat2x3_f16_uint_4 |
| %107 = OpConstantComposite %_arr_uint_uint_1 %uint_1 |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_Uniform_mat2x3_f16 = OpTypePointer Uniform %mat2x3_f16 |
| %_ptr_Uniform_v3half = OpTypePointer Uniform %v3half |
| %_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half |
| %_ptr_Uniform_half = OpTypePointer Uniform %half |
| %assign_and_preserve_padding_1_s_X = OpFunction %void None %15 |
| %dest = OpFunctionParameter %_arr_uint_uint_1 |
| %value = OpFunctionParameter %mat2v3half |
| %22 = OpLabel |
| %26 = OpCompositeExtract %uint %dest 0 |
| %28 = OpAccessChain %_ptr_StorageBuffer_v3half %s %uint_0 %26 %25 |
| %30 = OpCompositeExtract %v3half %value 0 |
| OpStore %28 %30 |
| %31 = OpCompositeExtract %uint %dest 0 |
| %33 = OpAccessChain %_ptr_StorageBuffer_v3half %s %uint_0 %31 %int_1 |
| %34 = OpCompositeExtract %v3half %value 1 |
| OpStore %33 %34 |
| OpReturn |
| OpFunctionEnd |
| %assign_and_preserve_padding_s = OpFunction %void None %35 |
| %value_0 = OpFunctionParameter %_arr_mat2v3half_uint_4 |
| %38 = OpLabel |
| %i = OpVariable %_ptr_Function_uint Function %29 |
| %var_for_index = OpVariable %_ptr_Function__arr_mat2v3half_uint_4 Function %53 |
| OpStore %i %29 |
| OpBranch %41 |
| %41 = OpLabel |
| OpLoopMerge %42 %43 None |
| OpBranch %44 |
| %44 = OpLabel |
| %46 = OpLoad %uint %i |
| %47 = OpULessThan %bool %46 %uint_4 |
| %45 = OpLogicalNot %bool %47 |
| OpSelectionMerge %49 None |
| OpBranchConditional %45 %50 %49 |
| %50 = OpLabel |
| OpBranch %42 |
| %49 = OpLabel |
| OpStore %var_for_index %value_0 |
| %55 = OpLoad %uint %i |
| %56 = OpCompositeConstruct %_arr_uint_uint_1 %55 |
| %57 = OpLoad %uint %i |
| %59 = OpAccessChain %_ptr_Function_mat2v3half %var_for_index %57 |
| %60 = OpLoad %mat2v3half %59 |
| %54 = OpFunctionCall %void %assign_and_preserve_padding_1_s_X %56 %60 |
| OpBranch %43 |
| %43 = OpLabel |
| %61 = OpLoad %uint %i |
| %62 = OpIAdd %uint %61 %uint_1 |
| OpStore %i %62 |
| OpBranch %41 |
| %42 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %conv_mat2x3_f16 = OpFunction %mat2v3half None %63 |
| %val = OpFunctionParameter %mat2x3_f16 |
| %66 = OpLabel |
| %67 = OpCompositeExtract %v3half %val 0 |
| %68 = OpCompositeExtract %v3half %val 1 |
| %69 = OpCompositeConstruct %mat2v3half %67 %68 |
| OpReturnValue %69 |
| OpFunctionEnd |
| %conv_arr4_mat2x3_f16 = OpFunction %_arr_mat2v3half_uint_4 None %70 |
| %val_0 = OpFunctionParameter %_arr_mat2x3_f16_uint_4 |
| %73 = OpLabel |
| %arr = OpVariable %_ptr_Function__arr_mat2v3half_uint_4 Function %53 |
| %i_0 = OpVariable %_ptr_Function_uint Function %29 |
| %var_for_index_1 = OpVariable %_ptr_Function__arr_mat2x3_f16_uint_4 Function %87 |
| OpBranch %76 |
| %76 = OpLabel |
| OpLoopMerge %77 %78 None |
| OpBranch %79 |
| %79 = OpLabel |
| %81 = OpLoad %uint %i_0 |
| %82 = OpULessThan %bool %81 %uint_4 |
| %80 = OpLogicalNot %bool %82 |
| OpSelectionMerge %83 None |
| OpBranchConditional %80 %84 %83 |
| %84 = OpLabel |
| OpBranch %77 |
| %83 = OpLabel |
| OpStore %var_for_index_1 %val_0 |
| %88 = OpLoad %uint %i_0 |
| %89 = OpAccessChain %_ptr_Function_mat2v3half %arr %88 |
| %91 = OpLoad %uint %i_0 |
| %93 = OpAccessChain %_ptr_Function_mat2x3_f16 %var_for_index_1 %91 |
| %94 = OpLoad %mat2x3_f16 %93 |
| %90 = OpFunctionCall %mat2v3half %conv_mat2x3_f16 %94 |
| OpStore %89 %90 |
| OpBranch %78 |
| %78 = OpLabel |
| %95 = OpLoad %uint %i_0 |
| %96 = OpIAdd %uint %95 %uint_1 |
| OpStore %i_0 %96 |
| OpBranch %76 |
| %77 = OpLabel |
| %97 = OpLoad %_arr_mat2v3half_uint_4 %arr |
| OpReturnValue %97 |
| OpFunctionEnd |
| %f = OpFunction %void None %98 |
| %100 = OpLabel |
| %104 = OpAccessChain %_ptr_Uniform__arr_mat2x3_f16_uint_4 %u %uint_0 |
| %105 = OpLoad %_arr_mat2x3_f16_uint_4 %104 |
| %102 = OpFunctionCall %_arr_mat2v3half_uint_4 %conv_arr4_mat2x3_f16 %105 |
| %101 = OpFunctionCall %void %assign_and_preserve_padding_s %102 |
| %111 = OpAccessChain %_ptr_Uniform_mat2x3_f16 %u %uint_0 %uint_2 |
| %112 = OpLoad %mat2x3_f16 %111 |
| %108 = OpFunctionCall %mat2v3half %conv_mat2x3_f16 %112 |
| %106 = OpFunctionCall %void %assign_and_preserve_padding_1_s_X %107 %108 |
| %113 = OpAccessChain %_ptr_StorageBuffer_v3half %s %uint_0 %int_1 %25 |
| %115 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0 %29 %uint_1 |
| %116 = OpLoad %v3half %115 |
| %117 = OpVectorShuffle %v3half %116 %116 2 0 1 |
| OpStore %113 %117 |
| %119 = OpAccessChain %_ptr_StorageBuffer_half %s %uint_0 %int_1 %25 %uint_0 |
| %121 = OpAccessChain %_ptr_Uniform_half %u %uint_0 %29 %uint_1 %29 |
| %122 = OpLoad %half %121 |
| OpStore %119 %122 |
| OpReturn |
| OpFunctionEnd |