pub unsafe extern "C" fn cuMipmappedArrayGetMemoryRequirements(
memoryRequirements: *mut CUDA_ARRAY_MEMORY_REQUIREMENTS,
mipmap: CUmipmappedArray,
device: CUdevice,
) -> CUresult
Expand description
\brief Returns the memory requirements of a CUDA mipmapped array
Returns the memory requirements of a CUDA mipmapped array in \p memoryRequirements If the CUDA mipmapped array is not allocated with flag ::CUDA_ARRAY3D_DEFERRED_MAPPING ::CUDA_ERROR_INVALID_VALUE will be returned.
The returned value in ::CUDA_ARRAY_MEMORY_REQUIREMENTS::size represents the total size of the CUDA mipmapped array. The returned value in ::CUDA_ARRAY_MEMORY_REQUIREMENTS::alignment represents the alignment necessary for mapping the CUDA mipmapped array.
\return ::CUDA_SUCCESS ::CUDA_ERROR_INVALID_VALUE
\param[out] memoryRequirements - Pointer to ::CUDA_ARRAY_MEMORY_REQUIREMENTS \param[in] mipmap - CUDA mipmapped array to get the memory requirements of \param[in] device - Device to get the memory requirements for \sa ::cuArrayGetMemoryRequirements, ::cuMemMapArrayAsync