Skip to main content

cuMipmappedArrayGetLevel

Function cuMipmappedArrayGetLevel 

Source
pub unsafe extern "C" fn cuMipmappedArrayGetLevel(
    pLevelArray: *mut CUarray,
    hMipmappedArray: CUmipmappedArray,
    level: c_uint,
) -> CUresult
Expand description

Gets a mipmap level of a CUDA mipmapped array.

Returns in *pLevelArray a CUDA array that represents a single mipmap level of the CUDA mipmapped array hMipmappedArray.

If level is greater than the maximum number of levels in this mipmapped array, cudaError_enum::CUDA_ERROR_INVALID_VALUE is returned.

Note that this function may also return error codes from previous, asynchronous launches.

§Parameters

  • pLevelArray: Returned mipmap level CUDA array.
  • hMipmappedArray: CUDA mipmapped array.
  • level: Mipmap level.

§Return value

See also: cuMipmappedArrayCreate, cuMipmappedArrayDestroy, cuArrayCreate, cudaGetMipmappedArrayLevel.