| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 89 |
| ; 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 %mat2x4_f16 "mat2x4_f16" |
| OpMemberName %mat2x4_f16 0 "col0" |
| OpMemberName %mat2x4_f16 1 "col1" |
| OpName %u "u" |
| OpName %u_block "u_block" |
| OpMemberName %u_block 0 "inner" |
| OpName %s "s" |
| OpName %conv_mat2x4_f16 "conv_mat2x4_f16" |
| OpName %val "val" |
| OpName %conv_arr4_mat2x4_f16 "conv_arr4_mat2x4_f16" |
| 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 %mat2x4_f16 0 Offset 0 |
| OpMemberDecorate %mat2x4_f16 1 Offset 8 |
| OpDecorate %_arr_mat2x4_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_mat2v4half_uint_4 ArrayStride 16 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %s Binding 1 |
| %half = OpTypeFloat 16 |
| %v4half = OpTypeVector %half 4 |
| %mat2x4_f16 = OpTypeStruct %v4half %v4half |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_mat2x4_f16_uint_4 = OpTypeArray %mat2x4_f16 %uint_4 |
| %u_block_std140 = OpTypeStruct %_arr_mat2x4_f16_uint_4 |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %u = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %mat2v4half = OpTypeMatrix %v4half 2 |
| %_arr_mat2v4half_uint_4 = OpTypeArray %mat2v4half %uint_4 |
| %u_block = OpTypeStruct %_arr_mat2v4half_uint_4 |
| %_ptr_StorageBuffer_u_block = OpTypePointer StorageBuffer %u_block |
| %s = OpVariable %_ptr_StorageBuffer_u_block StorageBuffer |
| %15 = OpTypeFunction %mat2v4half %mat2x4_f16 |
| %22 = OpTypeFunction %_arr_mat2v4half_uint_4 %_arr_mat2x4_f16_uint_4 |
| %_ptr_Function__arr_mat2v4half_uint_4 = OpTypePointer Function %_arr_mat2v4half_uint_4 |
| %28 = OpConstantNull %_arr_mat2v4half_uint_4 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %31 = OpConstantNull %uint |
| %bool = OpTypeBool |
| %_ptr_Function__arr_mat2x4_f16_uint_4 = OpTypePointer Function %_arr_mat2x4_f16_uint_4 |
| %44 = OpConstantNull %_arr_mat2x4_f16_uint_4 |
| %_ptr_Function_mat2v4half = OpTypePointer Function %mat2v4half |
| %_ptr_Function_mat2x4_f16 = OpTypePointer Function %mat2x4_f16 |
| %uint_1 = OpConstant %uint 1 |
| %void = OpTypeVoid |
| %57 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer__arr_mat2v4half_uint_4 = OpTypePointer StorageBuffer %_arr_mat2v4half_uint_4 |
| %_ptr_Uniform__arr_mat2x4_f16_uint_4 = OpTypePointer Uniform %_arr_mat2x4_f16_uint_4 |
| %int = OpTypeInt 32 1 |
| %int_1 = OpConstant %int 1 |
| %_ptr_StorageBuffer_mat2v4half = OpTypePointer StorageBuffer %mat2v4half |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_Uniform_mat2x4_f16 = OpTypePointer Uniform %mat2x4_f16 |
| %77 = OpConstantNull %int |
| %_ptr_StorageBuffer_v4half = OpTypePointer StorageBuffer %v4half |
| %_ptr_Uniform_v4half = OpTypePointer Uniform %v4half |
| %_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half |
| %_ptr_Uniform_half = OpTypePointer Uniform %half |
| %conv_mat2x4_f16 = OpFunction %mat2v4half None %15 |
| %val = OpFunctionParameter %mat2x4_f16 |
| %18 = OpLabel |
| %19 = OpCompositeExtract %v4half %val 0 |
| %20 = OpCompositeExtract %v4half %val 1 |
| %21 = OpCompositeConstruct %mat2v4half %19 %20 |
| OpReturnValue %21 |
| OpFunctionEnd |
| %conv_arr4_mat2x4_f16 = OpFunction %_arr_mat2v4half_uint_4 None %22 |
| %val_0 = OpFunctionParameter %_arr_mat2x4_f16_uint_4 |
| %25 = OpLabel |
| %arr = OpVariable %_ptr_Function__arr_mat2v4half_uint_4 Function %28 |
| %i = OpVariable %_ptr_Function_uint Function %31 |
| %var_for_index = OpVariable %_ptr_Function__arr_mat2x4_f16_uint_4 Function %44 |
| OpBranch %32 |
| %32 = OpLabel |
| OpLoopMerge %33 %34 None |
| OpBranch %35 |
| %35 = OpLabel |
| %37 = OpLoad %uint %i |
| %38 = OpULessThan %bool %37 %uint_4 |
| %36 = OpLogicalNot %bool %38 |
| OpSelectionMerge %40 None |
| OpBranchConditional %36 %41 %40 |
| %41 = OpLabel |
| OpBranch %33 |
| %40 = OpLabel |
| OpStore %var_for_index %val_0 |
| %45 = OpLoad %uint %i |
| %47 = OpAccessChain %_ptr_Function_mat2v4half %arr %45 |
| %49 = OpLoad %uint %i |
| %51 = OpAccessChain %_ptr_Function_mat2x4_f16 %var_for_index %49 |
| %52 = OpLoad %mat2x4_f16 %51 |
| %48 = OpFunctionCall %mat2v4half %conv_mat2x4_f16 %52 |
| OpStore %47 %48 |
| OpBranch %34 |
| %34 = OpLabel |
| %53 = OpLoad %uint %i |
| %55 = OpIAdd %uint %53 %uint_1 |
| OpStore %i %55 |
| OpBranch %32 |
| %33 = OpLabel |
| %56 = OpLoad %_arr_mat2v4half_uint_4 %arr |
| OpReturnValue %56 |
| OpFunctionEnd |
| %f = OpFunction %void None %57 |
| %60 = OpLabel |
| %63 = OpAccessChain %_ptr_StorageBuffer__arr_mat2v4half_uint_4 %s %uint_0 |
| %66 = OpAccessChain %_ptr_Uniform__arr_mat2x4_f16_uint_4 %u %uint_0 |
| %67 = OpLoad %_arr_mat2x4_f16_uint_4 %66 |
| %64 = OpFunctionCall %_arr_mat2v4half_uint_4 %conv_arr4_mat2x4_f16 %67 |
| OpStore %63 %64 |
| %71 = OpAccessChain %_ptr_StorageBuffer_mat2v4half %s %uint_0 %int_1 |
| %75 = OpAccessChain %_ptr_Uniform_mat2x4_f16 %u %uint_0 %uint_2 |
| %76 = OpLoad %mat2x4_f16 %75 |
| %72 = OpFunctionCall %mat2v4half %conv_mat2x4_f16 %76 |
| OpStore %71 %72 |
| %79 = OpAccessChain %_ptr_StorageBuffer_v4half %s %uint_0 %int_1 %77 |
| %81 = OpAccessChain %_ptr_Uniform_v4half %u %uint_0 %31 %uint_1 |
| %82 = OpLoad %v4half %81 |
| %83 = OpVectorShuffle %v4half %82 %82 1 3 0 2 |
| OpStore %79 %83 |
| %85 = OpAccessChain %_ptr_StorageBuffer_half %s %uint_0 %int_1 %77 %uint_0 |
| %87 = OpAccessChain %_ptr_Uniform_half %u %uint_0 %31 %uint_1 %31 |
| %88 = OpLoad %half %87 |
| OpStore %85 %88 |
| OpReturn |
| OpFunctionEnd |