blob: 2179479b1888d2c690f7b1ba005577ca8a4b18c3 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 113
; 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 %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 %s_block "s_block"
OpMemberName %s_block 0 "inner"
OpName %s "s"
OpName %a "a"
OpName %a_1 "a_1"
OpName %b "b"
OpName %m "m"
OpName %c "c"
OpName %v "v"
OpName %d "d"
OpName %f_1 "f_1"
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 %s_block Block
OpMemberDecorate %s_block 0 Offset 0
OpDecorate %s DescriptorSet 0
OpDecorate %s Binding 1
OpDecorate %_arr_mat4v3half_uint_4 ArrayStride 32
%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
%s_block = OpTypeStruct %half
%_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block
%s = OpVariable %_ptr_StorageBuffer_s_block StorageBuffer
%mat4v3half = OpTypeMatrix %v3half 4
%_arr_mat4v3half_uint_4 = OpTypeArray %mat4v3half %uint_4
%13 = OpTypeFunction %half %_arr_mat4v3half_uint_4
%int = OpTypeInt 32 1
%20 = OpConstantNull %int
%24 = OpTypeFunction %half %mat4v3half
%30 = OpTypeFunction %half %v3half
%35 = OpTypeFunction %half %half
%39 = OpTypeFunction %mat4v3half %mat4x3_f16
%48 = OpTypeFunction %_arr_mat4v3half_uint_4 %_arr_mat4x3_f16_uint_4
%_ptr_Function__arr_mat4v3half_uint_4 = OpTypePointer Function %_arr_mat4v3half_uint_4
%54 = OpConstantNull %_arr_mat4v3half_uint_4
%_ptr_Function_uint = OpTypePointer Function %uint
%57 = OpConstantNull %uint
%bool = OpTypeBool
%_ptr_Function__arr_mat4x3_f16_uint_4 = OpTypePointer Function %_arr_mat4x3_f16_uint_4
%70 = 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
%83 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_Uniform__arr_mat4x3_f16_uint_4 = OpTypePointer Uniform %_arr_mat4x3_f16_uint_4
%_ptr_Uniform_mat4x3_f16 = OpTypePointer Uniform %mat4x3_f16
%_ptr_Uniform_v3half = OpTypePointer Uniform %v3half
%_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half
%a = OpFunction %half None %13
%a_1 = OpFunctionParameter %_arr_mat4v3half_uint_4
%18 = OpLabel
%21 = OpCompositeExtract %mat4v3half %a_1 0
%22 = OpCompositeExtract %v3half %21 0
%23 = OpCompositeExtract %half %22 0
OpReturnValue %23
OpFunctionEnd
%b = OpFunction %half None %24
%m = OpFunctionParameter %mat4v3half
%27 = OpLabel
%28 = OpCompositeExtract %v3half %m 0
%29 = OpCompositeExtract %half %28 0
OpReturnValue %29
OpFunctionEnd
%c = OpFunction %half None %30
%v = OpFunctionParameter %v3half
%33 = OpLabel
%34 = OpCompositeExtract %half %v 0
OpReturnValue %34
OpFunctionEnd
%d = OpFunction %half None %35
%f_1 = OpFunctionParameter %half
%38 = OpLabel
OpReturnValue %f_1
OpFunctionEnd
%conv_mat4x3_f16 = OpFunction %mat4v3half None %39
%val = OpFunctionParameter %mat4x3_f16
%42 = OpLabel
%43 = OpCompositeExtract %v3half %val 0
%44 = OpCompositeExtract %v3half %val 1
%45 = OpCompositeExtract %v3half %val 2
%46 = OpCompositeExtract %v3half %val 3
%47 = OpCompositeConstruct %mat4v3half %43 %44 %45 %46
OpReturnValue %47
OpFunctionEnd
%conv_arr4_mat4x3_f16 = OpFunction %_arr_mat4v3half_uint_4 None %48
%val_0 = OpFunctionParameter %_arr_mat4x3_f16_uint_4
%51 = OpLabel
%arr = OpVariable %_ptr_Function__arr_mat4v3half_uint_4 Function %54
%i = OpVariable %_ptr_Function_uint Function %57
%var_for_index = OpVariable %_ptr_Function__arr_mat4x3_f16_uint_4 Function %70
OpBranch %58
%58 = OpLabel
OpLoopMerge %59 %60 None
OpBranch %61
%61 = OpLabel
%63 = OpLoad %uint %i
%64 = OpULessThan %bool %63 %uint_4
%62 = OpLogicalNot %bool %64
OpSelectionMerge %66 None
OpBranchConditional %62 %67 %66
%67 = OpLabel
OpBranch %59
%66 = OpLabel
OpStore %var_for_index %val_0
%71 = OpLoad %uint %i
%73 = OpAccessChain %_ptr_Function_mat4v3half %arr %71
%75 = OpLoad %uint %i
%77 = OpAccessChain %_ptr_Function_mat4x3_f16 %var_for_index %75
%78 = OpLoad %mat4x3_f16 %77
%74 = OpFunctionCall %mat4v3half %conv_mat4x3_f16 %78
OpStore %73 %74
OpBranch %60
%60 = OpLabel
%79 = OpLoad %uint %i
%81 = OpIAdd %uint %79 %uint_1
OpStore %i %81
OpBranch %58
%59 = OpLabel
%82 = OpLoad %_arr_mat4v3half_uint_4 %arr
OpReturnValue %82
OpFunctionEnd
%f = OpFunction %void None %83
%86 = OpLabel
%91 = OpAccessChain %_ptr_Uniform__arr_mat4x3_f16_uint_4 %u %uint_0
%92 = OpLoad %_arr_mat4x3_f16_uint_4 %91
%88 = OpFunctionCall %_arr_mat4v3half_uint_4 %conv_arr4_mat4x3_f16 %92
%87 = OpFunctionCall %half %a %88
%96 = OpAccessChain %_ptr_Uniform_mat4x3_f16 %u %uint_0 %uint_1
%97 = OpLoad %mat4x3_f16 %96
%94 = OpFunctionCall %mat4v3half %conv_mat4x3_f16 %97
%93 = OpFunctionCall %half %b %94
%100 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0 %uint_1 %uint_0
%101 = OpLoad %v3half %100
%102 = OpVectorShuffle %v3half %101 %101 2 0 1
%98 = OpFunctionCall %half %c %102
%104 = OpAccessChain %_ptr_Uniform_v3half %u %uint_0 %uint_1 %uint_0
%105 = OpLoad %v3half %104
%106 = OpVectorShuffle %v3half %105 %105 2 0 1
%107 = OpCompositeExtract %half %106 0
%103 = OpFunctionCall %half %d %107
%109 = OpAccessChain %_ptr_StorageBuffer_half %s %uint_0
%110 = OpFAdd %half %87 %93
%111 = OpFAdd %half %110 %98
%112 = OpFAdd %half %111 %103
OpStore %109 %112
OpReturn
OpFunctionEnd