// Code generated by cmd/gen. DO NOT EDIT. /* * * Copyright (C) 2019-2025 Intel Corporation * * SPDX-License-Identifier: MIT * * @file ze_api.h * @version v1.15-r1.15.31 * */ package gozel import ( "unsafe" "github.com/fumiama/gozel/internal/zecall" ) // ZE_IMAGE_VIEW_EXT_NAME Image View Extension Name const ZE_IMAGE_VIEW_EXT_NAME = "ZE_extension_image_view" // ZeImageViewExtVersion (ze_image_view_ext_version_t) Image View Extension Version(s) type ZeImageViewExtVersion uintptr const ( ZE_IMAGE_VIEW_EXT_VERSION_1_0 ZeImageViewExtVersion = /* ZE_MAKE_VERSION( 1, 0 ) */ ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_EXT_VERSION_1_0 version 1.0 ZE_IMAGE_VIEW_EXT_VERSION_CURRENT ZeImageViewExtVersion = /* ZE_MAKE_VERSION( 1, 0 ) */ ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_EXT_VERSION_CURRENT latest known version ZE_IMAGE_VIEW_EXT_VERSION_FORCE_UINT32 ZeImageViewExtVersion = 0x7fffffff // ZE_IMAGE_VIEW_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_IMAGE_VIEW_EXT_VERSION_* ENUMs ) // ZeImageViewCreateExt Create image view on the context. // / // / @details // / - The application must only use the image view for the device, or its // / sub-devices, which was provided during creation. // / - The application may call this function from simultaneous threads. // / - The implementation of this function must be thread-safe. // / - The implementation must support ::ZE_IMAGE_VIEW_EXT_NAME extension. // / - Image views are treated as images from the API. // / - Image views provide a mechanism to redescribe how an image is // / interpreted (e.g. different format). // / - Image views become disabled when their corresponding image resource is // / destroyed. // / - Use ::zeImageDestroy to destroy image view objects. // / // / @remarks // / _Analogues_ // / - None // / // / @returns // / - ::ZE_RESULT_SUCCESS // / - ::ZE_RESULT_ERROR_UNINITIALIZED // / - ::ZE_RESULT_ERROR_DEVICE_LOST // / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY // / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY // / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT // / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE // / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE // / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS // / - ::ZE_RESULT_ERROR_NOT_AVAILABLE // / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET // / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE // / - ::ZE_RESULT_ERROR_UNKNOWN // / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE // / + `nullptr == hContext` // / + `nullptr == hDevice` // / + `nullptr == hImage` // / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER // / + `nullptr == desc` // / + `nullptr == phImageView` // / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION // / + `0x3 < desc->flags` // / + `::ZE_IMAGE_TYPE_BUFFER < desc->type` // / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION // / - ::ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT func ZeImageViewCreateExt( hContext ZeContextHandle, // hContext [in] handle of the context object hDevice ZeDeviceHandle, // hDevice [in] handle of the device desc *ZeImageDesc, // desc [in] pointer to image descriptor hImage ZeImageHandle, // hImage [in] handle of image object to create view from phImageView *ZeImageHandle, // phImageView [out] pointer to handle of image object created for view ) (ZeResult, error) { return zecall.Call[ZeResult]("zeImageViewCreateExt", uintptr(hContext), uintptr(hDevice), uintptr(unsafe.Pointer(desc)), uintptr(hImage), uintptr(unsafe.Pointer(phImageView))) } // ZE_IMAGE_VIEW_EXP_NAME Image View Extension Name const ZE_IMAGE_VIEW_EXP_NAME = "ZE_experimental_image_view" // ZeImageViewExpVersion (ze_image_view_exp_version_t) Image View Extension Version(s) type ZeImageViewExpVersion uintptr const ( ZE_IMAGE_VIEW_EXP_VERSION_1_0 ZeImageViewExpVersion = /* ZE_MAKE_VERSION( 1, 0 ) */ ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_EXP_VERSION_1_0 version 1.0 ZE_IMAGE_VIEW_EXP_VERSION_CURRENT ZeImageViewExpVersion = /* ZE_MAKE_VERSION( 1, 0 ) */ ((1 << 16) | (0 & 0x0000ffff)) // ZE_IMAGE_VIEW_EXP_VERSION_CURRENT latest known version ZE_IMAGE_VIEW_EXP_VERSION_FORCE_UINT32 ZeImageViewExpVersion = 0x7fffffff // ZE_IMAGE_VIEW_EXP_VERSION_FORCE_UINT32 Value marking end of ZE_IMAGE_VIEW_EXP_VERSION_* ENUMs ) // ZeImageViewCreateExp Create image view on the context. // / // / @details // / - The application must only use the image view for the device, or its // / sub-devices, which was provided during creation. // / - The application may call this function from simultaneous threads. // / - The implementation of this function must be thread-safe. // / - The implementation must support ::ZE_IMAGE_VIEW_EXP_NAME extension. // / - Image views are treated as images from the API. // / - Image views provide a mechanism to redescribe how an image is // / interpreted (e.g. different format). // / - Image views become disabled when their corresponding image resource is // / destroyed. // / - Use ::zeImageDestroy to destroy image view objects. // / - Note: This function is deprecated and replaced by // / ::zeImageViewCreateExt. // / // / @remarks // / _Analogues_ // / - None // / // / @returns // / - ::ZE_RESULT_SUCCESS // / - ::ZE_RESULT_ERROR_UNINITIALIZED // / - ::ZE_RESULT_ERROR_DEVICE_LOST // / - ::ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY // / - ::ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY // / - ::ZE_RESULT_ERROR_INVALID_ARGUMENT // / - ::ZE_RESULT_ERROR_UNSUPPORTED_FEATURE // / - ::ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE // / - ::ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS // / - ::ZE_RESULT_ERROR_NOT_AVAILABLE // / - ::ZE_RESULT_ERROR_DEVICE_REQUIRES_RESET // / - ::ZE_RESULT_ERROR_DEVICE_IN_LOW_POWER_STATE // / - ::ZE_RESULT_ERROR_UNKNOWN // / - ::ZE_RESULT_ERROR_INVALID_NULL_HANDLE // / + `nullptr == hContext` // / + `nullptr == hDevice` // / + `nullptr == hImage` // / - ::ZE_RESULT_ERROR_INVALID_NULL_POINTER // / + `nullptr == desc` // / + `nullptr == phImageView` // / - ::ZE_RESULT_ERROR_INVALID_ENUMERATION // / + `0x3 < desc->flags` // / + `::ZE_IMAGE_TYPE_BUFFER < desc->type` // / - ::ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION // / - ::ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT func ZeImageViewCreateExp( hContext ZeContextHandle, // hContext [in] handle of the context object hDevice ZeDeviceHandle, // hDevice [in] handle of the device desc *ZeImageDesc, // desc [in] pointer to image descriptor hImage ZeImageHandle, // hImage [in] handle of image object to create view from phImageView *ZeImageHandle, // phImageView [out] pointer to handle of image object created for view ) (ZeResult, error) { return zecall.Call[ZeResult]("zeImageViewCreateExp", uintptr(hContext), uintptr(hDevice), uintptr(unsafe.Pointer(desc)), uintptr(hImage), uintptr(unsafe.Pointer(phImageView))) }