blob: 405e81f3b4a86423e4d3b3952a4fd89e9b487070 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 52
; 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
%mat4v2float = OpTypeMatrix %v2float 4
%9 = OpTypeFunction %mat4v2float
%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
%float_5 = OpConstant %float 5
%float_6 = OpConstant %float 6
%24 = OpConstantComposite %v2float %float_5 %float_6
%float_7 = OpConstant %float 7
%float_8 = OpConstant %float 8
%27 = OpConstantComposite %v2float %float_7 %float_8
%28 = OpConstantComposite %mat4v2float %18 %21 %24 %27
%half = OpTypeFloat 16
%v2half = OpTypeVector %half 2
%mat4v2half = OpTypeMatrix %v2half 4
%int = OpTypeInt 32 1
%37 = OpConstantNull %int
%int_1 = OpConstant %int 1
%int_2 = OpConstant %int 2
%int_3 = OpConstant %int 3
%_ptr_Function_mat4v2half = OpTypePointer Function %mat4v2half
%51 = OpConstantNull %mat4v2half
%unused_entry_point = OpFunction %void None %5
%8 = OpLabel
OpReturn
OpFunctionEnd
%m = OpFunction %mat4v2float None %9
%13 = OpLabel
%14 = OpLoad %float %t
%16 = OpFAdd %float %14 %float_1
OpStore %t %16
OpReturnValue %28
OpFunctionEnd
%f = OpFunction %void None %5
%30 = OpLabel
%v = OpVariable %_ptr_Function_mat4v2half Function %51
%31 = OpFunctionCall %mat4v2float %m
%38 = OpCompositeExtract %v2float %31 0
%35 = OpFConvert %v2half %38
%41 = OpCompositeExtract %v2float %31 1
%39 = OpFConvert %v2half %41
%44 = OpCompositeExtract %v2float %31 2
%42 = OpFConvert %v2half %44
%47 = OpCompositeExtract %v2float %31 3
%45 = OpFConvert %v2half %47
%48 = OpCompositeConstruct %mat4v2half %35 %39 %42 %45
OpStore %v %48
OpReturn
OpFunctionEnd