| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 154 |
| ; 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 %S_std140 "S_std140" |
| OpMemberName %S_std140 0 "before" |
| OpMemberName %S_std140 1 "m_0" |
| OpMemberName %S_std140 2 "m_1" |
| OpMemberName %S_std140 3 "after" |
| OpName %u "u" |
| OpName %u_block "u_block" |
| OpMemberName %u_block 0 "inner" |
| OpName %S "S" |
| OpMemberName %S 0 "before" |
| OpMemberName %S 1 "m" |
| OpMemberName %S 2 "after" |
| OpName %s "s" |
| OpName %assign_and_preserve_padding_2_s_X_m "assign_and_preserve_padding_2_s_X_m" |
| OpName %dest "dest" |
| OpName %value "value" |
| OpName %assign_and_preserve_padding_1_s_X "assign_and_preserve_padding_1_s_X" |
| OpName %dest_0 "dest" |
| OpName %value_0 "value" |
| OpName %assign_and_preserve_padding_s "assign_and_preserve_padding_s" |
| OpName %value_1 "value" |
| OpName %i "i" |
| OpName %var_for_index "var_for_index" |
| OpName %conv_S "conv_S" |
| OpName %val "val" |
| OpName %conv_arr4_S "conv_arr4_S" |
| OpName %val_0 "val" |
| OpName %arr "arr" |
| OpName %i_0 "i" |
| OpName %var_for_index_1 "var_for_index_1" |
| OpName %load_u_inner_2_m "load_u_inner_2_m" |
| OpName %f "f" |
| OpDecorate %u_block_std140 Block |
| OpMemberDecorate %u_block_std140 0 Offset 0 |
| OpMemberDecorate %S_std140 0 Offset 0 |
| OpMemberDecorate %S_std140 1 Offset 8 |
| OpMemberDecorate %S_std140 2 Offset 16 |
| OpMemberDecorate %S_std140 3 Offset 64 |
| OpDecorate %_arr_S_std140_uint_4 ArrayStride 128 |
| OpDecorate %u NonWritable |
| OpDecorate %u DescriptorSet 0 |
| OpDecorate %u Binding 0 |
| OpDecorate %u_block Block |
| OpMemberDecorate %u_block 0 Offset 0 |
| OpMemberDecorate %S 0 Offset 0 |
| OpMemberDecorate %S 1 Offset 8 |
| OpMemberDecorate %S 1 ColMajor |
| OpMemberDecorate %S 1 MatrixStride 8 |
| OpMemberDecorate %S 2 Offset 64 |
| OpDecorate %_arr_S_uint_4 ArrayStride 128 |
| OpDecorate %s DescriptorSet 0 |
| OpDecorate %s Binding 1 |
| OpDecorate %_arr_uint_uint_1 ArrayStride 4 |
| %int = OpTypeInt 32 1 |
| %half = OpTypeFloat 16 |
| %v3half = OpTypeVector %half 3 |
| %S_std140 = OpTypeStruct %int %v3half %v3half %int |
| %uint = OpTypeInt 32 0 |
| %uint_4 = OpConstant %uint 4 |
| %_arr_S_std140_uint_4 = OpTypeArray %S_std140 %uint_4 |
| %u_block_std140 = OpTypeStruct %_arr_S_std140_uint_4 |
| %_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140 |
| %u = OpVariable %_ptr_Uniform_u_block_std140 Uniform |
| %mat2v3half = OpTypeMatrix %v3half 2 |
| %S = OpTypeStruct %int %mat2v3half %int |
| %_arr_S_uint_4 = OpTypeArray %S %uint_4 |
| %u_block = OpTypeStruct %_arr_S_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 |
| %17 = OpTypeFunction %void %_arr_uint_uint_1 %mat2v3half |
| %uint_0 = OpConstant %uint 0 |
| %26 = OpConstantNull %int |
| %_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half |
| %30 = OpConstantNull %uint |
| %int_1 = OpConstant %int 1 |
| %36 = OpTypeFunction %void %_arr_uint_uint_1 %S |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| %uint_2 = OpConstant %uint 2 |
| %53 = OpTypeFunction %void %_arr_S_uint_4 |
| %_ptr_Function_uint = OpTypePointer Function %uint |
| %bool = OpTypeBool |
| %_ptr_Function__arr_S_uint_4 = OpTypePointer Function %_arr_S_uint_4 |
| %71 = OpConstantNull %_arr_S_uint_4 |
| %_ptr_Function_S = OpTypePointer Function %S |
| %81 = OpTypeFunction %S %S_std140 |
| %91 = OpTypeFunction %_arr_S_uint_4 %_arr_S_std140_uint_4 |
| %_ptr_Function__arr_S_std140_uint_4 = OpTypePointer Function %_arr_S_std140_uint_4 |
| %108 = OpConstantNull %_arr_S_std140_uint_4 |
| %_ptr_Function_S_std140 = OpTypePointer Function %S_std140 |
| %119 = OpTypeFunction %mat2v3half |
| %_ptr_Uniform_S_std140 = OpTypePointer Uniform %S_std140 |
| %_ptr_Uniform_v3half = OpTypePointer Uniform %v3half |
| %133 = OpTypeFunction %void |
| %_ptr_Uniform__arr_S_std140_uint_4 = OpTypePointer Uniform %_arr_S_std140_uint_4 |
| %142 = OpConstantComposite %_arr_uint_uint_1 %uint_1 |
| %uint_3 = OpConstant %uint 3 |
| %148 = OpConstantComposite %_arr_uint_uint_1 %uint_3 |
| %assign_and_preserve_padding_2_s_X_m = OpFunction %void None %17 |
| %dest = OpFunctionParameter %_arr_uint_uint_1 |
| %value = OpFunctionParameter %mat2v3half |
| %24 = OpLabel |
| %27 = OpCompositeExtract %uint %dest 0 |
| %29 = OpAccessChain %_ptr_StorageBuffer_v3half %s %uint_0 %27 %uint_1 %26 |
| %31 = OpCompositeExtract %v3half %value 0 |
| OpStore %29 %31 |
| %32 = OpCompositeExtract %uint %dest 0 |
| %34 = OpAccessChain %_ptr_StorageBuffer_v3half %s %uint_0 %32 %uint_1 %int_1 |
| %35 = OpCompositeExtract %v3half %value 1 |
| OpStore %34 %35 |
| OpReturn |
| OpFunctionEnd |
| %assign_and_preserve_padding_1_s_X = OpFunction %void None %36 |
| %dest_0 = OpFunctionParameter %_arr_uint_uint_1 |
| %value_0 = OpFunctionParameter %S |
| %40 = OpLabel |
| %41 = OpCompositeExtract %uint %dest_0 0 |
| %43 = OpAccessChain %_ptr_StorageBuffer_int %s %uint_0 %41 %uint_0 |
| %44 = OpCompositeExtract %int %value_0 0 |
| OpStore %43 %44 |
| %46 = OpCompositeExtract %uint %dest_0 0 |
| %47 = OpCompositeConstruct %_arr_uint_uint_1 %46 |
| %48 = OpCompositeExtract %mat2v3half %value_0 1 |
| %45 = OpFunctionCall %void %assign_and_preserve_padding_2_s_X_m %47 %48 |
| %49 = OpCompositeExtract %uint %dest_0 0 |
| %51 = OpAccessChain %_ptr_StorageBuffer_int %s %uint_0 %49 %uint_2 |
| %52 = OpCompositeExtract %int %value_0 2 |
| OpStore %51 %52 |
| OpReturn |
| OpFunctionEnd |
| %assign_and_preserve_padding_s = OpFunction %void None %53 |
| %value_1 = OpFunctionParameter %_arr_S_uint_4 |
| %56 = OpLabel |
| %i = OpVariable %_ptr_Function_uint Function %30 |
| %var_for_index = OpVariable %_ptr_Function__arr_S_uint_4 Function %71 |
| OpStore %i %30 |
| OpBranch %59 |
| %59 = OpLabel |
| OpLoopMerge %60 %61 None |
| OpBranch %62 |
| %62 = OpLabel |
| %64 = OpLoad %uint %i |
| %65 = OpULessThan %bool %64 %uint_4 |
| %63 = OpLogicalNot %bool %65 |
| OpSelectionMerge %67 None |
| OpBranchConditional %63 %68 %67 |
| %68 = OpLabel |
| OpBranch %60 |
| %67 = OpLabel |
| OpStore %var_for_index %value_1 |
| %73 = OpLoad %uint %i |
| %74 = OpCompositeConstruct %_arr_uint_uint_1 %73 |
| %75 = OpLoad %uint %i |
| %77 = OpAccessChain %_ptr_Function_S %var_for_index %75 |
| %78 = OpLoad %S %77 |
| %72 = OpFunctionCall %void %assign_and_preserve_padding_1_s_X %74 %78 |
| OpBranch %61 |
| %61 = OpLabel |
| %79 = OpLoad %uint %i |
| %80 = OpIAdd %uint %79 %uint_1 |
| OpStore %i %80 |
| OpBranch %59 |
| %60 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %conv_S = OpFunction %S None %81 |
| %val = OpFunctionParameter %S_std140 |
| %84 = OpLabel |
| %85 = OpCompositeExtract %int %val 0 |
| %86 = OpCompositeExtract %v3half %val 1 |
| %87 = OpCompositeExtract %v3half %val 2 |
| %88 = OpCompositeConstruct %mat2v3half %86 %87 |
| %89 = OpCompositeExtract %int %val 3 |
| %90 = OpCompositeConstruct %S %85 %88 %89 |
| OpReturnValue %90 |
| OpFunctionEnd |
| %conv_arr4_S = OpFunction %_arr_S_uint_4 None %91 |
| %val_0 = OpFunctionParameter %_arr_S_std140_uint_4 |
| %94 = OpLabel |
| %arr = OpVariable %_ptr_Function__arr_S_uint_4 Function %71 |
| %i_0 = OpVariable %_ptr_Function_uint Function %30 |
| %var_for_index_1 = OpVariable %_ptr_Function__arr_S_std140_uint_4 Function %108 |
| OpBranch %97 |
| %97 = OpLabel |
| OpLoopMerge %98 %99 None |
| OpBranch %100 |
| %100 = OpLabel |
| %102 = OpLoad %uint %i_0 |
| %103 = OpULessThan %bool %102 %uint_4 |
| %101 = OpLogicalNot %bool %103 |
| OpSelectionMerge %104 None |
| OpBranchConditional %101 %105 %104 |
| %105 = OpLabel |
| OpBranch %98 |
| %104 = OpLabel |
| OpStore %var_for_index_1 %val_0 |
| %109 = OpLoad %uint %i_0 |
| %110 = OpAccessChain %_ptr_Function_S %arr %109 |
| %112 = OpLoad %uint %i_0 |
| %114 = OpAccessChain %_ptr_Function_S_std140 %var_for_index_1 %112 |
| %115 = OpLoad %S_std140 %114 |
| %111 = OpFunctionCall %S %conv_S %115 |
| OpStore %110 %111 |
| OpBranch %99 |
| %99 = OpLabel |
| %116 = OpLoad %uint %i_0 |
| %117 = OpIAdd %uint %116 %uint_1 |
| OpStore %i_0 %117 |
| OpBranch %97 |
| %98 = OpLabel |
| %118 = OpLoad %_arr_S_uint_4 %arr |
| OpReturnValue %118 |
| OpFunctionEnd |
| %load_u_inner_2_m = OpFunction %mat2v3half None %119 |
| %121 = OpLabel |
| %124 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2 |
| %127 = OpAccessChain %_ptr_Uniform_v3half %124 %uint_1 |
| %128 = OpLoad %v3half %127 |
| %130 = OpAccessChain %_ptr_Uniform_v3half %124 %uint_2 |
| %131 = OpLoad %v3half %130 |
| %132 = OpCompositeConstruct %mat2v3half %128 %131 |
| OpReturnValue %132 |
| OpFunctionEnd |
| %f = OpFunction %void None %133 |
| %135 = OpLabel |
| %139 = OpAccessChain %_ptr_Uniform__arr_S_std140_uint_4 %u %uint_0 |
| %140 = OpLoad %_arr_S_std140_uint_4 %139 |
| %137 = OpFunctionCall %_arr_S_uint_4 %conv_arr4_S %140 |
| %136 = OpFunctionCall %void %assign_and_preserve_padding_s %137 |
| %144 = OpAccessChain %_ptr_Uniform_S_std140 %u %uint_0 %uint_2 |
| %145 = OpLoad %S_std140 %144 |
| %143 = OpFunctionCall %S %conv_S %145 |
| %141 = OpFunctionCall %void %assign_and_preserve_padding_1_s_X %142 %143 |
| %149 = OpFunctionCall %mat2v3half %load_u_inner_2_m |
| %146 = OpFunctionCall %void %assign_and_preserve_padding_2_s_X_m %148 %149 |
| %150 = OpAccessChain %_ptr_StorageBuffer_v3half %s %uint_0 %int_1 %uint_1 %26 |
| %151 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0 %30 %uint_2 |
| %152 = OpLoad %v3half %151 |
| %153 = OpVectorShuffle %v3half %152 %152 2 0 1 |
| OpStore %150 %153 |
| OpReturn |
| OpFunctionEnd |