| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 134 |
| ; 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 %mat4x3_f16 "mat4x3_f16" |
| OpMemberName %mat4x3_f16 0 "col0" |
| OpMemberName %mat4x3_f16 1 "col1" |
| OpMemberName %mat4x3_f16 2 "col2" |
| OpMemberName %mat4x3_f16 3 "col3" |
| 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_mat4x3_f16 "conv_mat4x3_f16" |
| OpName %val "val" |
| OpName %conv_arr4_mat4x3_f16 "conv_arr4_mat4x3_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 %mat4x3_f16 0 Offset 0 |
| OpMemberDecorate %mat4x3_f16 1 Offset 8 |
| OpMemberDecorate %mat4x3_f16 2 Offset 16 |
| OpMemberDecorate %mat4x3_f16 3 Offset 24 |
| OpDecorate %_arr_mat4x3_f16_uint_4 ArrayStride 32 |
| 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_mat4v3half_uint_4 ArrayStride 32 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %s Binding 1 |
| OpDecorate %_arr_uint_uint_1 ArrayStride 4 |
| %half = OpTypeFloat 16 |
| %v3half = OpTypeVector %half 3 |
| %mat4x3_f16 = OpTypeStruct %v3half %v3half %v3half %v3half |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_mat4x3_f16_uint_4 = OpTypeArray %mat4x3_f16 %uint_4 |
| %u_block_std140 = OpTypeStruct %_arr_mat4x3_f16_uint_4 |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %u = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %mat4v3half = OpTypeMatrix %v3half 4 |
| %_arr_mat4v3half_uint_4 = OpTypeArray %mat4v3half %uint_4 |
| %u_block = OpTypeStruct %_arr_mat4v3half_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 %mat4v3half |
| %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 |
| %int_2 = OpConstant %int 2 |
| %uint_2 = OpConstant %uint 2 |
| %int_3 = OpConstant %int 3 |
| %uint_3 = OpConstant %uint 3 |
| %45 = OpTypeFunction %void %_arr_mat4v3half_uint_4 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %bool = OpTypeBool |
| %_ptr_Function__arr_mat4v3half_uint_4 = OpTypePointer Function %_arr_mat4v3half_uint_4 |
| %63 = OpConstantNull %_arr_mat4v3half_uint_4 |
| %_ptr_Function_mat4v3half = OpTypePointer Function %mat4v3half |
| %73 = OpTypeFunction %mat4v3half %mat4x3_f16 |
| %82 = OpTypeFunction %_arr_mat4v3half_uint_4 %_arr_mat4x3_f16_uint_4 |
| %_ptr_Function__arr_mat4x3_f16_uint_4 = OpTypePointer Function %_arr_mat4x3_f16_uint_4 |
| %99 = OpConstantNull %_arr_mat4x3_f16_uint_4 |
| %_ptr_Function_mat4x3_f16 = OpTypePointer Function %mat4x3_f16 |
| %110 = OpTypeFunction %void |
| %_ptr_Uniform__arr_mat4x3_f16_uint_4 = OpTypePointer Uniform %_arr_mat4x3_f16_uint_4 |
| %119 = OpConstantComposite %_arr_uint_uint_1 %uint_1 |
| %_ptr_Uniform_mat4x3_f16 = OpTypePointer Uniform %mat4x3_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 %mat4v3half |
| %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 |
| %35 = OpCompositeExtract %uint %dest 0 |
| %37 = OpAccessChain %_ptr_StorageBuffer_v3half %s %uint_0 %35 %int_2 |
| %39 = OpCompositeExtract %v3half %value 2 |
| OpStore %37 %39 |
| %40 = OpCompositeExtract %uint %dest 0 |
| %42 = OpAccessChain %_ptr_StorageBuffer_v3half %s %uint_0 %40 %int_3 |
| %44 = OpCompositeExtract %v3half %value 3 |
| OpStore %42 %44 |
| OpReturn |
| OpFunctionEnd |
| %assign_and_preserve_padding_s = OpFunction %void None %45 |
| %value_0 = OpFunctionParameter %_arr_mat4v3half_uint_4 |
| %48 = OpLabel |
| %i = OpVariable %_ptr_Function_uint Function %29 |
| %var_for_index = OpVariable %_ptr_Function__arr_mat4v3half_uint_4 Function %63 |
| OpStore %i %29 |
| OpBranch %51 |
| %51 = OpLabel |
| OpLoopMerge %52 %53 None |
| OpBranch %54 |
| %54 = OpLabel |
| %56 = OpLoad %uint %i |
| %57 = OpULessThan %bool %56 %uint_4 |
| %55 = OpLogicalNot %bool %57 |
| OpSelectionMerge %59 None |
| OpBranchConditional %55 %60 %59 |
| %60 = OpLabel |
| OpBranch %52 |
| %59 = OpLabel |
| OpStore %var_for_index %value_0 |
| %65 = OpLoad %uint %i |
| %66 = OpCompositeConstruct %_arr_uint_uint_1 %65 |
| %67 = OpLoad %uint %i |
| %69 = OpAccessChain %_ptr_Function_mat4v3half %var_for_index %67 |
| %70 = OpLoad %mat4v3half %69 |
| %64 = OpFunctionCall %void %assign_and_preserve_padding_1_s_X %66 %70 |
| OpBranch %53 |
| %53 = OpLabel |
| %71 = OpLoad %uint %i |
| %72 = OpIAdd %uint %71 %uint_1 |
| OpStore %i %72 |
| OpBranch %51 |
| %52 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %conv_mat4x3_f16 = OpFunction %mat4v3half None %73 |
| %val = OpFunctionParameter %mat4x3_f16 |
| %76 = OpLabel |
| %77 = OpCompositeExtract %v3half %val 0 |
| %78 = OpCompositeExtract %v3half %val 1 |
| %79 = OpCompositeExtract %v3half %val 2 |
| %80 = OpCompositeExtract %v3half %val 3 |
| %81 = OpCompositeConstruct %mat4v3half %77 %78 %79 %80 |
| OpReturnValue %81 |
| OpFunctionEnd |
| %conv_arr4_mat4x3_f16 = OpFunction %_arr_mat4v3half_uint_4 None %82 |
| %val_0 = OpFunctionParameter %_arr_mat4x3_f16_uint_4 |
| %85 = OpLabel |
| %arr = OpVariable %_ptr_Function__arr_mat4v3half_uint_4 Function %63 |
| %i_0 = OpVariable %_ptr_Function_uint Function %29 |
| %var_for_index_1 = OpVariable %_ptr_Function__arr_mat4x3_f16_uint_4 Function %99 |
| OpBranch %88 |
| %88 = OpLabel |
| OpLoopMerge %89 %90 None |
| OpBranch %91 |
| %91 = OpLabel |
| %93 = OpLoad %uint %i_0 |
| %94 = OpULessThan %bool %93 %uint_4 |
| %92 = OpLogicalNot %bool %94 |
| OpSelectionMerge %95 None |
| OpBranchConditional %92 %96 %95 |
| %96 = OpLabel |
| OpBranch %89 |
| %95 = OpLabel |
| OpStore %var_for_index_1 %val_0 |
| %100 = OpLoad %uint %i_0 |
| %101 = OpAccessChain %_ptr_Function_mat4v3half %arr %100 |
| %103 = OpLoad %uint %i_0 |
| %105 = OpAccessChain %_ptr_Function_mat4x3_f16 %var_for_index_1 %103 |
| %106 = OpLoad %mat4x3_f16 %105 |
| %102 = OpFunctionCall %mat4v3half %conv_mat4x3_f16 %106 |
| OpStore %101 %102 |
| OpBranch %90 |
| %90 = OpLabel |
| %107 = OpLoad %uint %i_0 |
| %108 = OpIAdd %uint %107 %uint_1 |
| OpStore %i_0 %108 |
| OpBranch %88 |
| %89 = OpLabel |
| %109 = OpLoad %_arr_mat4v3half_uint_4 %arr |
| OpReturnValue %109 |
| OpFunctionEnd |
| %f = OpFunction %void None %110 |
| %112 = OpLabel |
| %116 = OpAccessChain %_ptr_Uniform__arr_mat4x3_f16_uint_4 %u %uint_0 |
| %117 = OpLoad %_arr_mat4x3_f16_uint_4 %116 |
| %114 = OpFunctionCall %_arr_mat4v3half_uint_4 %conv_arr4_mat4x3_f16 %117 |
| %113 = OpFunctionCall %void %assign_and_preserve_padding_s %114 |
| %122 = OpAccessChain %_ptr_Uniform_mat4x3_f16 %u %uint_0 %uint_2 |
| %123 = OpLoad %mat4x3_f16 %122 |
| %120 = OpFunctionCall %mat4v3half %conv_mat4x3_f16 %123 |
| %118 = OpFunctionCall %void %assign_and_preserve_padding_1_s_X %119 %120 |
| %124 = OpAccessChain %_ptr_StorageBuffer_v3half %s %uint_0 %int_1 %25 |
| %126 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0 %29 %uint_1 |
| %127 = OpLoad %v3half %126 |
| %128 = OpVectorShuffle %v3half %127 %127 2 0 1 |
| OpStore %124 %128 |
| %130 = OpAccessChain %_ptr_StorageBuffer_half %s %uint_0 %int_1 %25 %uint_0 |
| %132 = OpAccessChain %_ptr_Uniform_half %u %uint_0 %29 %uint_1 %29 |
| %133 = OpLoad %half %132 |
| OpStore %130 %133 |
| OpReturn |
| OpFunctionEnd |