2019-12-16 17:33:40 +08:00
|
|
|
/*
|
2020-01-07 19:54:43 +08:00
|
|
|
* Copyright (C) 2019-2020 Intel Corporation
|
2019-12-16 17:33:40 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-02-23 05:50:57 +08:00
|
|
|
#include "opencl/source/sharings/unified/unified_sharing.h"
|
2019-12-16 17:33:40 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
class Image;
|
|
|
|
class Context;
|
|
|
|
|
|
|
|
class UnifiedImage : public UnifiedSharing {
|
|
|
|
using UnifiedSharing::UnifiedSharing;
|
|
|
|
|
|
|
|
public:
|
|
|
|
static Image *createSharedUnifiedImage(Context *context, cl_mem_flags flags, UnifiedSharingMemoryDescription description,
|
|
|
|
const cl_image_format *imageFormat, const cl_image_desc *imageDesc, cl_int *errcodeRet);
|
|
|
|
};
|
|
|
|
} // namespace NEO
|