| 1 |
/* |
| 2 |
* Copyright (C) 2019-2023 Intel Corporation |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: MIT |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#pragma once |
| 9 |
|
| 10 |
#include "opencl/source/sharings/unified/unified_sharing.h" |
| 11 |
|
| 12 |
#include "CL/cl.h" |
| 13 |
|
| 14 |
namespace NEO { |
| 15 |
class Buffer; |
| 16 |
class Context; |
| 17 |
|
| 18 |
class UnifiedBuffer : public UnifiedSharing { |
| 19 |
using UnifiedSharing::UnifiedSharing; |
| 20 |
|
| 21 |
public: |
| 22 |
static Buffer *createSharedUnifiedBuffer(Context *context, cl_mem_flags flags, UnifiedSharingMemoryDescription description, cl_int *errcodeRet); |
| 23 |
}; |
| 24 |
} // namespace NEO |