blob: 13b9baa9660bcef5e5f8ad41c2a63d1eb7a47e8c [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 40
; Schema: 0
OpCapability Shader
OpCapability Float16
OpCapability UniformAndStorageBuffer16BitAccess
OpCapability StorageBuffer16BitAccess
OpCapability StorageInputOutput16
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %t "t"
OpName %unused_entry_point "unused_entry_point"
OpName %m "m"
OpName %f "f"
OpName %v "v"
%float = OpTypeFloat 32
%_ptr_Private_float = OpTypePointer Private %float
%4 = OpConstantNull %float
%t = OpVariable %_ptr_Private_float Private %4
%void = OpTypeVoid
%5 = OpTypeFunction %void
%v2float = OpTypeVector %float 2
%mat2v2float = OpTypeMatrix %v2float 2
%9 = OpTypeFunction %mat2v2float
%float_1 = OpConstant %float 1
%float_2 = OpConstant %float 2
%18 = OpConstantComposite %v2float %float_1 %float_2
%float_3 = OpConstant %float 3
%float_4 = OpConstant %float 4
%21 = OpConstantComposite %v2float %float_3 %float_4
%22 = OpConstantComposite %mat2v2float %18 %21
%half = OpTypeFloat 16
%v2half = OpTypeVector %half 2
%mat2v2half = OpTypeMatrix %v2half 2
%int = OpTypeInt 32 1
%31 = OpConstantNull %int
%int_1 = OpConstant %int 1
%_ptr_Function_mat2v2half = OpTypePointer Function %mat2v2half
%39 = OpConstantNull %mat2v2half
%unused_entry_point = OpFunction %void None %5
%8 = OpLabel
OpReturn
OpFunctionEnd
%m = OpFunction %mat2v2float None %9
%13 = OpLabel
%14 = OpLoad %float %t
%16 = OpFAdd %float %14 %float_1
OpStore %t %16
OpReturnValue %22
OpFunctionEnd
%f = OpFunction %void None %5
%24 = OpLabel
%v = OpVariable %_ptr_Function_mat2v2half Function %39
%25 = OpFunctionCall %mat2v2float %m
%32 = OpCompositeExtract %v2float %25 0
%29 = OpFConvert %v2half %32
%35 = OpCompositeExtract %v2float %25 1
%33 = OpFConvert %v2half %35
%36 = OpCompositeConstruct %mat2v2half %29 %33
OpStore %v %36
OpReturn
OpFunctionEnd