mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Extend image functionality
- add imageView extension - add import win32 NT handle - add black box test with imageView usage example Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
afd5f766c2
commit
af55117fa0
@@ -16,10 +16,10 @@ struct _ze_image_handle_t {};
|
||||
|
||||
namespace NEO {
|
||||
struct ImageInfo;
|
||||
}
|
||||
struct ImageDescriptor;
|
||||
} // namespace NEO
|
||||
|
||||
namespace L0 {
|
||||
|
||||
struct Image : _ze_image_handle_t {
|
||||
template <typename Type>
|
||||
struct Allocator {
|
||||
@@ -31,6 +31,8 @@ struct Image : _ze_image_handle_t {
|
||||
|
||||
static ze_result_t create(uint32_t productFamily, Device *device, const ze_image_desc_t *desc, Image **pImage);
|
||||
|
||||
virtual ze_result_t createView(Device *device, const ze_image_desc_t *desc, ze_image_handle_t *pImage) = 0;
|
||||
|
||||
virtual NEO::GraphicsAllocation *getAllocation() = 0;
|
||||
virtual void copySurfaceStateToSSH(void *surfaceStateHeap,
|
||||
const uint32_t surfaceStateOffset,
|
||||
|
||||
Reference in New Issue
Block a user