pub unsafe extern "C" fn cudaMipmappedArrayGetMemoryRequirements(
memoryRequirements: *mut cudaArrayMemoryRequirements,
mipmap: cudaMipmappedArray_t,
device: c_int,
) -> cudaError_tExpand description
Returns the memory requirements of a CUDA mipmapped array.
Returns the memory requirements of a CUDA mipmapped array in memoryRequirements If the CUDA mipmapped array is not allocated with flag cudaArrayDeferredMapping cudaError_t::CUDA_ERROR_INVALID_VALUE 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.
§Parameters
memoryRequirements: Pointer tocudaArrayMemoryRequirements.mipmap: CUDA mipmapped array to get the memory requirements of.device: Device to get the memory requirements for.
§Return value
See also: cudaArrayGetMemoryRequirements.