cubecl_hip_sys

Function hipExternalMemoryGetMappedMipmappedArray

Source
pub unsafe extern "C" fn hipExternalMemoryGetMappedMipmappedArray(
    mipmap: *mut hipMipmappedArray_t,
    extMem: hipExternalMemory_t,
    mipmapDesc: *const hipExternalMemoryMipmappedArrayDesc,
) -> hipError_t
Expand description

@brief Maps a mipmapped array onto an external memory object.

@param[out] mipmap mipmapped array to return @param[in] extMem external memory object handle @param[in] mipmapDesc external mipmapped array descriptor

Returned mipmapped array must be freed using hipFreeMipmappedArray.

@return #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidResourceHandle

@see hipImportExternalMemory, hipDestroyExternalMemory, hipExternalMemoryGetMappedBuffer, hipFreeMipmappedArray