| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 117 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability Float16 |
| OpCapability UniformAndStorageBuffer16BitAccess |
| OpCapability StorageBuffer16BitAccess |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" %local_invocation_index_1 |
| OpExecutionMode %f LocalSize 1 1 1 |
| OpName %local_invocation_index_1 "local_invocation_index_1" |
| OpName %u_block_std140 "u_block_std140" |
| OpMemberName %u_block_std140 0 "inner" |
| OpName %mat4x4_f16 "mat4x4_f16" |
| OpMemberName %mat4x4_f16 0 "col0" |
| OpMemberName %mat4x4_f16 1 "col1" |
| OpMemberName %mat4x4_f16 2 "col2" |
| OpMemberName %mat4x4_f16 3 "col3" |
| OpName %u "u" |
| OpName %w "w" |
| OpName %tint_zero_workgroup_memory "tint_zero_workgroup_memory" |
| OpName %local_idx "local_idx" |
| OpName %idx "idx" |
| OpName %conv_mat4x4_f16 "conv_mat4x4_f16" |
| OpName %val "val" |
| OpName %conv_arr4_mat4x4_f16 "conv_arr4_mat4x4_f16" |
| OpName %val_0 "val" |
| OpName %arr "arr" |
| OpName %i "i" |
| OpName %var_for_index "var_for_index" |
| OpName %f_inner "f_inner" |
| OpName %local_invocation_index "local_invocation_index" |
| OpName %f "f" |
| OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex |
| OpDecorate %u_block_std140 Block |
| OpMemberDecorate %u_block_std140 0 Offset 0 |
| OpMemberDecorate %mat4x4_f16 0 Offset 0 |
| OpMemberDecorate %mat4x4_f16 1 Offset 8 |
| OpMemberDecorate %mat4x4_f16 2 Offset 16 |
| OpMemberDecorate %mat4x4_f16 3 Offset 24 |
| OpDecorate %_arr_mat4x4_f16_uint_4 ArrayStride 32 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| OpDecorate %_arr_mat4v4half_uint_4 ArrayStride 32 |
| %uint = OpTypeInt 32 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %local_invocation_index_1 = OpVariable %_ptr_Input_uint Input |
| %half = OpTypeFloat 16 |
| %v4half = OpTypeVector %half 4 |
| %mat4x4_f16 = OpTypeStruct %v4half %v4half %v4half %v4half |
| %uint_4 = OpConstant %uint 4 |
| %_arr_mat4x4_f16_uint_4 = OpTypeArray %mat4x4_f16 %uint_4 |
| %u_block_std140 = OpTypeStruct %_arr_mat4x4_f16_uint_4 |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %u = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %mat4v4half = OpTypeMatrix %v4half 4 |
| %_arr_mat4v4half_uint_4 = OpTypeArray %mat4v4half %uint_4 |
| %_ptr_Workgroup__arr_mat4v4half_uint_4 = OpTypePointer Workgroup %_arr_mat4v4half_uint_4 |
| %w = OpVariable %_ptr_Workgroup__arr_mat4v4half_uint_4 Workgroup |
| %void = OpTypeVoid |
| %16 = OpTypeFunction %void %uint |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %23 = OpConstantNull %uint |
| %bool = OpTypeBool |
| %_ptr_Workgroup_mat4v4half = OpTypePointer Workgroup %mat4v4half |
| %37 = OpConstantNull %mat4v4half |
| %uint_1 = OpConstant %uint 1 |
| %uint_2 = OpConstant %uint 2 |
| %uint_264 = OpConstant %uint 264 |
| %44 = OpTypeFunction %mat4v4half %mat4x4_f16 |
| %53 = OpTypeFunction %_arr_mat4v4half_uint_4 %_arr_mat4x4_f16_uint_4 |
| %_ptr_Function__arr_mat4v4half_uint_4 = OpTypePointer Function %_arr_mat4v4half_uint_4 |
| %59 = OpConstantNull %_arr_mat4v4half_uint_4 |
| %_ptr_Function__arr_mat4x4_f16_uint_4 = OpTypePointer Function %_arr_mat4x4_f16_uint_4 |
| %72 = OpConstantNull %_arr_mat4x4_f16_uint_4 |
| %_ptr_Function_mat4v4half = OpTypePointer Function %mat4v4half |
| %_ptr_Function_mat4x4_f16 = OpTypePointer Function %mat4x4_f16 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform__arr_mat4x4_f16_uint_4 = OpTypePointer Uniform %_arr_mat4x4_f16_uint_4 |
| %int = OpTypeInt 32 1 |
| %int_1 = OpConstant %int 1 |
| %_ptr_Uniform_mat4x4_f16 = OpTypePointer Uniform %mat4x4_f16 |
| %100 = OpConstantNull %int |
| %_ptr_Workgroup_v4half = OpTypePointer Workgroup %v4half |
| %_ptr_Uniform_v4half = OpTypePointer Uniform %v4half |
| %_ptr_Workgroup_half = OpTypePointer Workgroup %half |
| %_ptr_Uniform_half = OpTypePointer Uniform %half |
| %112 = OpTypeFunction %void |
| %tint_zero_workgroup_memory = OpFunction %void None %16 |
| %local_idx = OpFunctionParameter %uint |
| %20 = OpLabel |
| %idx = OpVariable %_ptr_Function_uint Function %23 |
| OpStore %idx %local_idx |
| OpBranch %24 |
| %24 = OpLabel |
| OpLoopMerge %25 %26 None |
| OpBranch %27 |
| %27 = OpLabel |
| %29 = OpLoad %uint %idx |
| %30 = OpULessThan %bool %29 %uint_4 |
| %28 = OpLogicalNot %bool %30 |
| OpSelectionMerge %32 None |
| OpBranchConditional %28 %33 %32 |
| %33 = OpLabel |
| OpBranch %25 |
| %32 = OpLabel |
| %34 = OpLoad %uint %idx |
| %36 = OpAccessChain %_ptr_Workgroup_mat4v4half %w %34 |
| OpStore %36 %37 |
| OpBranch %26 |
| %26 = OpLabel |
| %38 = OpLoad %uint %idx |
| %40 = OpIAdd %uint %38 %uint_1 |
| OpStore %idx %40 |
| OpBranch %24 |
| %25 = OpLabel |
| OpControlBarrier %uint_2 %uint_2 %uint_264 |
| OpReturn |
| OpFunctionEnd |
| %conv_mat4x4_f16 = OpFunction %mat4v4half None %44 |
| %val = OpFunctionParameter %mat4x4_f16 |
| %47 = OpLabel |
| %48 = OpCompositeExtract %v4half %val 0 |
| %49 = OpCompositeExtract %v4half %val 1 |
| %50 = OpCompositeExtract %v4half %val 2 |
| %51 = OpCompositeExtract %v4half %val 3 |
| %52 = OpCompositeConstruct %mat4v4half %48 %49 %50 %51 |
| OpReturnValue %52 |
| OpFunctionEnd |
| %conv_arr4_mat4x4_f16 = OpFunction %_arr_mat4v4half_uint_4 None %53 |
| %val_0 = OpFunctionParameter %_arr_mat4x4_f16_uint_4 |
| %56 = OpLabel |
| %arr = OpVariable %_ptr_Function__arr_mat4v4half_uint_4 Function %59 |
| %i = OpVariable %_ptr_Function_uint Function %23 |
| %var_for_index = OpVariable %_ptr_Function__arr_mat4x4_f16_uint_4 Function %72 |
| OpBranch %61 |
| %61 = OpLabel |
| OpLoopMerge %62 %63 None |
| OpBranch %64 |
| %64 = OpLabel |
| %66 = OpLoad %uint %i |
| %67 = OpULessThan %bool %66 %uint_4 |
| %65 = OpLogicalNot %bool %67 |
| OpSelectionMerge %68 None |
| OpBranchConditional %65 %69 %68 |
| %69 = OpLabel |
| OpBranch %62 |
| %68 = OpLabel |
| OpStore %var_for_index %val_0 |
| %73 = OpLoad %uint %i |
| %75 = OpAccessChain %_ptr_Function_mat4v4half %arr %73 |
| %77 = OpLoad %uint %i |
| %79 = OpAccessChain %_ptr_Function_mat4x4_f16 %var_for_index %77 |
| %80 = OpLoad %mat4x4_f16 %79 |
| %76 = OpFunctionCall %mat4v4half %conv_mat4x4_f16 %80 |
| OpStore %75 %76 |
| OpBranch %63 |
| %63 = OpLabel |
| %81 = OpLoad %uint %i |
| %82 = OpIAdd %uint %81 %uint_1 |
| OpStore %i %82 |
| OpBranch %61 |
| %62 = OpLabel |
| %83 = OpLoad %_arr_mat4v4half_uint_4 %arr |
| OpReturnValue %83 |
| OpFunctionEnd |
| %f_inner = OpFunction %void None %16 |
| %local_invocation_index = OpFunctionParameter %uint |
| %86 = OpLabel |
| %87 = OpFunctionCall %void %tint_zero_workgroup_memory %local_invocation_index |
| %91 = OpAccessChain %_ptr_Uniform__arr_mat4x4_f16_uint_4 %u %uint_0 |
| %92 = OpLoad %_arr_mat4x4_f16_uint_4 %91 |
| %88 = OpFunctionCall %_arr_mat4v4half_uint_4 %conv_arr4_mat4x4_f16 %92 |
| OpStore %w %88 |
| %95 = OpAccessChain %_ptr_Workgroup_mat4v4half %w %int_1 |
| %98 = OpAccessChain %_ptr_Uniform_mat4x4_f16 %u %uint_0 %uint_2 |
| %99 = OpLoad %mat4x4_f16 %98 |
| %96 = OpFunctionCall %mat4v4half %conv_mat4x4_f16 %99 |
| OpStore %95 %96 |
| %102 = OpAccessChain %_ptr_Workgroup_v4half %w %int_1 %100 |
| %104 = OpAccessChain %_ptr_Uniform_v4half %u %uint_0 %23 %uint_1 |
| %105 = OpLoad %v4half %104 |
| %106 = OpVectorShuffle %v4half %105 %105 1 3 0 2 |
| OpStore %102 %106 |
| %108 = OpAccessChain %_ptr_Workgroup_half %w %int_1 %100 %uint_0 |
| %110 = OpAccessChain %_ptr_Uniform_half %u %uint_0 %23 %uint_1 %23 |
| %111 = OpLoad %half %110 |
| OpStore %108 %111 |
| OpReturn |
| OpFunctionEnd |
| %f = OpFunction %void None %112 |
| %114 = OpLabel |
| %116 = OpLoad %uint %local_invocation_index_1 |
| %115 = OpFunctionCall %void %f_inner %116 |
| OpReturn |
| OpFunctionEnd |