1 //
2 // Copyright 2021 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // CLDeviceVk.cpp: Implements the class methods for CLDeviceVk.
7
8 #include "libANGLE/renderer/vulkan/CLDeviceVk.h"
9
10 #include "libANGLE/renderer/vulkan/CLPlatformVk.h"
11
12 namespace rx
13 {
14
CLDeviceVk(const cl::Device & device)15 CLDeviceVk::CLDeviceVk(const cl::Device &device) : CLDeviceImpl(device) {}
16
17 CLDeviceVk::~CLDeviceVk() = default;
18
createInfo(cl::DeviceType type) const19 CLDeviceImpl::Info CLDeviceVk::createInfo(cl::DeviceType type) const
20 {
21 Info info(type);
22 return info;
23 }
24
getInfoUInt(cl::DeviceInfo name,cl_uint * value) const25 cl_int CLDeviceVk::getInfoUInt(cl::DeviceInfo name, cl_uint *value) const
26 {
27 return CL_INVALID_VALUE;
28 }
29
getInfoULong(cl::DeviceInfo name,cl_ulong * value) const30 cl_int CLDeviceVk::getInfoULong(cl::DeviceInfo name, cl_ulong *value) const
31 {
32 return CL_INVALID_VALUE;
33 }
34
getInfoSizeT(cl::DeviceInfo name,size_t * value) const35 cl_int CLDeviceVk::getInfoSizeT(cl::DeviceInfo name, size_t *value) const
36 {
37 return CL_INVALID_VALUE;
38 }
39
getInfoStringLength(cl::DeviceInfo name,size_t * value) const40 cl_int CLDeviceVk::getInfoStringLength(cl::DeviceInfo name, size_t *value) const
41 {
42 return CL_INVALID_VALUE;
43 }
44
getInfoString(cl::DeviceInfo name,size_t size,char * value) const45 cl_int CLDeviceVk::getInfoString(cl::DeviceInfo name, size_t size, char *value) const
46 {
47 return CL_INVALID_VALUE;
48 }
49
createSubDevices(const cl_device_partition_property * properties,cl_uint numDevices,CreateFuncs & subDevices,cl_uint * numDevicesRet)50 cl_int CLDeviceVk::createSubDevices(const cl_device_partition_property *properties,
51 cl_uint numDevices,
52 CreateFuncs &subDevices,
53 cl_uint *numDevicesRet)
54 {
55 return CL_INVALID_VALUE;
56 }
57
58 } // namespace rx
59