Function cudaMipmappedArrayGetMemoryRequirements

Source
pub unsafe extern "C" fn cudaMipmappedArrayGetMemoryRequirements(
    memoryRequirements: *mut cudaArrayMemoryRequirements,
    mipmap: cudaMipmappedArray_t,
    device: c_int,
) -> cudaError_t
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 ::cudaArrayDeferredMapping ::cudaErrorInvalidValue will be returned.

The returned value in ::cudaArrayMemoryRequirements::size represents the total size of the CUDA mipmapped array. The returned value in ::cudaArrayMemoryRequirements::alignment represents the alignment necessary for mapping the CUDA mipmapped array.

\return ::cudaSuccess ::cudaErrorInvalidValue

\param[out] memoryRequirements - Pointer to ::cudaArrayMemoryRequirements \param[in] mipmap - CUDA mipmapped array to get the memory requirements of \param[in] device - Device to get the memory requirements for \sa ::cudaArrayGetMemoryRequirements