| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 93 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability Float16 |
| OpCapability UniformAndStorageBuffer16BitAccess |
| OpCapability StorageBuffer16BitAccess |
| 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 %s_block "s_block" |
| OpMemberName %s_block 0 "inner" |
| OpName %s "s" |
| OpName %p "p" |
| 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 %s_block Block |
| OpMemberDecorate %s_block 0 Offset 0 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %s Binding 1 |
| OpDecorate %_arr_mat2v4half_uint_4 ArrayStride 16 |
| %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 |
| %s_block = OpTypeStruct %half |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block |
| %s = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer |
| %mat2v4half = OpTypeMatrix %v4half 2 |
| %_arr_mat2v4half_uint_4 = OpTypeArray %mat2v4half %uint_4 |
| %_ptr_Private__arr_mat2v4half_uint_4 = OpTypePointer Private %_arr_mat2v4half_uint_4 |
| %17 = OpConstantNull %_arr_mat2v4half_uint_4 |
| %p = OpVariable %_ptr_Private__arr_mat2v4half_uint_4 Private %17 |
| %18 = OpTypeFunction %mat2v4half %mat2x4_f16 |
| %25 = OpTypeFunction %_arr_mat2v4half_uint_4 %_arr_mat2x4_f16_uint_4 |
| %_ptr_Function__arr_mat2v4half_uint_4 = OpTypePointer Function %_arr_mat2v4half_uint_4 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %33 = OpConstantNull %uint |
| %bool = OpTypeBool |
| %_ptr_Function__arr_mat2x4_f16_uint_4 = OpTypePointer Function %_arr_mat2x4_f16_uint_4 |
| %46 = 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 |
| %59 = OpTypeFunction %void |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform__arr_mat2x4_f16_uint_4 = OpTypePointer Uniform %_arr_mat2x4_f16_uint_4 |
| %int = OpTypeInt 32 1 |
| %int_1 = OpConstant %int 1 |
| %_ptr_Private_mat2v4half = OpTypePointer Private %mat2v4half |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_Uniform_mat2x4_f16 = OpTypePointer Uniform %mat2x4_f16 |
| %77 = OpConstantNull %int |
| %_ptr_Private_v4half = OpTypePointer Private %v4half |
| %_ptr_Uniform_v4half = OpTypePointer Uniform %v4half |
| %_ptr_Private_half = OpTypePointer Private %half |
| %_ptr_Uniform_half = OpTypePointer Uniform %half |
| %_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half |
| %conv_mat2x4_f16 = OpFunction %mat2v4half None %18 |
| %val = OpFunctionParameter %mat2x4_f16 |
| %21 = OpLabel |
| %22 = OpCompositeExtract %v4half %val 0 |
| %23 = OpCompositeExtract %v4half %val 1 |
| %24 = OpCompositeConstruct %mat2v4half %22 %23 |
| OpReturnValue %24 |
| OpFunctionEnd |
| %conv_arr4_mat2x4_f16 = OpFunction %_arr_mat2v4half_uint_4 None %25 |
| %val_0 = OpFunctionParameter %_arr_mat2x4_f16_uint_4 |
| %28 = OpLabel |
| %arr = OpVariable %_ptr_Function__arr_mat2v4half_uint_4 Function %17 |
| %i = OpVariable %_ptr_Function_uint Function %33 |
| %var_for_index = OpVariable %_ptr_Function__arr_mat2x4_f16_uint_4 Function %46 |
| OpBranch %34 |
| %34 = OpLabel |
| OpLoopMerge %35 %36 None |
| OpBranch %37 |
| %37 = OpLabel |
| %39 = OpLoad %uint %i |
| %40 = OpULessThan %bool %39 %uint_4 |
| %38 = OpLogicalNot %bool %40 |
| OpSelectionMerge %42 None |
| OpBranchConditional %38 %43 %42 |
| %43 = OpLabel |
| OpBranch %35 |
| %42 = OpLabel |
| OpStore %var_for_index %val_0 |
| %47 = OpLoad %uint %i |
| %49 = OpAccessChain %_ptr_Function_mat2v4half %arr %47 |
| %51 = OpLoad %uint %i |
| %53 = OpAccessChain %_ptr_Function_mat2x4_f16 %var_for_index %51 |
| %54 = OpLoad %mat2x4_f16 %53 |
| %50 = OpFunctionCall %mat2v4half %conv_mat2x4_f16 %54 |
| OpStore %49 %50 |
| OpBranch %36 |
| %36 = OpLabel |
| %55 = OpLoad %uint %i |
| %57 = OpIAdd %uint %55 %uint_1 |
| OpStore %i %57 |
| OpBranch %34 |
| %35 = OpLabel |
| %58 = OpLoad %_arr_mat2v4half_uint_4 %arr |
| OpReturnValue %58 |
| OpFunctionEnd |
| %f = OpFunction %void None %59 |
| %62 = OpLabel |
| %66 = OpAccessChain %_ptr_Uniform__arr_mat2x4_f16_uint_4 %u %uint_0 |
| %67 = OpLoad %_arr_mat2x4_f16_uint_4 %66 |
| %63 = OpFunctionCall %_arr_mat2v4half_uint_4 %conv_arr4_mat2x4_f16 %67 |
| OpStore %p %63 |
| %71 = OpAccessChain %_ptr_Private_mat2v4half %p %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_Private_v4half %p %int_1 %77 |
| %81 = OpAccessChain %_ptr_Uniform_v4half %u %uint_0 %33 %uint_1 |
| %82 = OpLoad %v4half %81 |
| %83 = OpVectorShuffle %v4half %82 %82 1 3 0 2 |
| OpStore %79 %83 |
| %85 = OpAccessChain %_ptr_Private_half %p %int_1 %77 %uint_0 |
| %87 = OpAccessChain %_ptr_Uniform_half %u %uint_0 %33 %uint_1 %33 |
| %88 = OpLoad %half %87 |
| OpStore %85 %88 |
| %90 = OpAccessChain %_ptr_StorageBuffer_half %s %uint_0 |
| %91 = OpAccessChain %_ptr_Private_half %p %int_1 %77 %uint_0 |
| %92 = OpLoad %half %91 |
| OpStore %90 %92 |
| OpReturn |
| OpFunctionEnd |