blob: cb52845be247c6b824a2cb9c026ebbe0cb58942e [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 91
; 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 %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 "i"
OpName %var_for_index "var_for_index"
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
%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
%15 = OpTypeFunction %mat4v3half %mat4x3_f16
%24 = OpTypeFunction %_arr_mat4v3half_uint_4 %_arr_mat4x3_f16_uint_4
%_ptr_Function__arr_mat4v3half_uint_4 = OpTypePointer Function %_arr_mat4v3half_uint_4
%30 = OpConstantNull %_arr_mat4v3half_uint_4
%_ptr_Function_uint = OpTypePointer Function %uint
%33 = OpConstantNull %uint
%bool = OpTypeBool
%_ptr_Function__arr_mat4x3_f16_uint_4 = OpTypePointer Function %_arr_mat4x3_f16_uint_4
%46 = OpConstantNull %_arr_mat4x3_f16_uint_4
%_ptr_Function_mat4v3half = OpTypePointer Function %mat4v3half
%_ptr_Function_mat4x3_f16 = OpTypePointer Function %mat4x3_f16
%uint_1 = OpConstant %uint 1
%void = OpTypeVoid
%59 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer__arr_mat4v3half_uint_4 = OpTypePointer StorageBuffer %_arr_mat4v3half_uint_4
%_ptr_Uniform__arr_mat4x3_f16_uint_4 = OpTypePointer Uniform %_arr_mat4x3_f16_uint_4
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_StorageBuffer_mat4v3half = OpTypePointer StorageBuffer %mat4v3half
%uint_2 = OpConstant %uint 2
%_ptr_Uniform_mat4x3_f16 = OpTypePointer Uniform %mat4x3_f16
%79 = OpConstantNull %int
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
%_ptr_Uniform_v3half = OpTypePointer Uniform %v3half
%_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half
%_ptr_Uniform_half = OpTypePointer Uniform %half
%conv_mat4x3_f16 = OpFunction %mat4v3half None %15
%val = OpFunctionParameter %mat4x3_f16
%18 = OpLabel
%19 = OpCompositeExtract %v3half %val 0
%20 = OpCompositeExtract %v3half %val 1
%21 = OpCompositeExtract %v3half %val 2
%22 = OpCompositeExtract %v3half %val 3
%23 = OpCompositeConstruct %mat4v3half %19 %20 %21 %22
OpReturnValue %23
OpFunctionEnd
%conv_arr4_mat4x3_f16 = OpFunction %_arr_mat4v3half_uint_4 None %24
%val_0 = OpFunctionParameter %_arr_mat4x3_f16_uint_4
%27 = OpLabel
%arr = OpVariable %_ptr_Function__arr_mat4v3half_uint_4 Function %30
%i = OpVariable %_ptr_Function_uint Function %33
%var_for_index = OpVariable %_ptr_Function__arr_mat4x3_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_mat4v3half %arr %47
%51 = OpLoad %uint %i
%53 = OpAccessChain %_ptr_Function_mat4x3_f16 %var_for_index %51
%54 = OpLoad %mat4x3_f16 %53
%50 = OpFunctionCall %mat4v3half %conv_mat4x3_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_mat4v3half_uint_4 %arr
OpReturnValue %58
OpFunctionEnd
%f = OpFunction %void None %59
%62 = OpLabel
%65 = OpAccessChain %_ptr_StorageBuffer__arr_mat4v3half_uint_4 %s %uint_0
%68 = OpAccessChain %_ptr_Uniform__arr_mat4x3_f16_uint_4 %u %uint_0
%69 = OpLoad %_arr_mat4x3_f16_uint_4 %68
%66 = OpFunctionCall %_arr_mat4v3half_uint_4 %conv_arr4_mat4x3_f16 %69
OpStore %65 %66
%73 = OpAccessChain %_ptr_StorageBuffer_mat4v3half %s %uint_0 %int_1
%77 = OpAccessChain %_ptr_Uniform_mat4x3_f16 %u %uint_0 %uint_2
%78 = OpLoad %mat4x3_f16 %77
%74 = OpFunctionCall %mat4v3half %conv_mat4x3_f16 %78
OpStore %73 %74
%81 = OpAccessChain %_ptr_StorageBuffer_v3half %s %uint_0 %int_1 %79
%83 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0 %33 %uint_1
%84 = OpLoad %v3half %83
%85 = OpVectorShuffle %v3half %84 %84 2 0 1
OpStore %81 %85
%87 = OpAccessChain %_ptr_StorageBuffer_half %s %uint_0 %int_1 %79 %uint_0
%89 = OpAccessChain %_ptr_Uniform_half %u %uint_0 %33 %uint_1 %33
%90 = OpLoad %half %89
OpStore %87 %90
OpReturn
OpFunctionEnd