blob: 98319f6cab3670aefb93d6396a239667aa3e0b95 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 25
; 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
%v3float = OpTypeVector %float 3
%9 = OpTypeFunction %v3float
%float_1 = OpConstant %float 1
%half = OpTypeFloat 16
%v3half = OpTypeVector %half 3
%_ptr_Function_v3half = OpTypePointer Function %v3half
%24 = OpConstantNull %v3half
%unused_entry_point = OpFunction %void None %5
%8 = OpLabel
OpReturn
OpFunctionEnd
%m = OpFunction %v3float None %9
%12 = OpLabel
OpStore %t %float_1
%14 = OpLoad %float %t
%15 = OpCompositeConstruct %v3float %14 %14 %14
OpReturnValue %15
OpFunctionEnd
%f = OpFunction %void None %5
%17 = OpLabel
%v = OpVariable %_ptr_Function_v3half Function %24
%18 = OpFunctionCall %v3float %m
%19 = OpFConvert %v3half %18
OpStore %v %19
OpReturn
OpFunctionEnd