mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +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
bc121c09fa
commit
a3930168d6
@@ -30,6 +30,16 @@ zeImageGetMemoryPropertiesExp(
|
||||
return L0::Image::fromHandle(hImage)->getMemoryProperties(pMemoryProperties);
|
||||
}
|
||||
|
||||
ZE_APIEXPORT ze_result_t ZE_APICALL
|
||||
zeImageViewCreateExp(
|
||||
ze_context_handle_t hContext,
|
||||
ze_device_handle_t hDevice,
|
||||
const ze_image_desc_t *desc,
|
||||
ze_image_handle_t hImage,
|
||||
ze_image_handle_t *phImageView) {
|
||||
return L0::Image::fromHandle(hImage)->createView(L0::Device::fromHandle(hDevice), desc, phImageView);
|
||||
}
|
||||
|
||||
#if defined(__cplusplus)
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user