Skip to main content

cudaGraphicsResourceGetMappedMipmappedArray

Function cudaGraphicsResourceGetMappedMipmappedArray 

Source
pub unsafe extern "C" fn cudaGraphicsResourceGetMappedMipmappedArray(
    mipmappedArray: *mut cudaMipmappedArray_t,
    resource: cudaGraphicsResource_t,
) -> cudaError_t
Expand description

Get a mipmapped array through which to access a mapped graphics resource.

Returns in *mipmappedArray a mipmapped array through which the mapped graphics resource resource may be accessed. The value set in mipmappedArray may change every time that resource is mapped.

If resource is not a texture then it cannot be accessed via an array and cudaError_t::CUDA_ERROR_UNKNOWN is returned. If resource is not mapped then cudaError_t::CUDA_ERROR_UNKNOWN is returned.

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

Note that this function may also return cudaError_t::CUDA_ERROR_NOT_INITIALIZED, cudaErrorInsufficientDriver or cudaError_t::CUDA_ERROR_NO_DEVICE if this call tries to initialize internal CUDA RT state.

Note that as specified by cudaStreamAddCallback no CUDA function may be called from callback. cudaError_t::CUDA_ERROR_NOT_PERMITTED may, but is not guaranteed to, be returned as a diagnostic in such case.

§Parameters

  • mipmappedArray: Returned mipmapped array through which resource may be accessed.
  • resource: Mapped resource to access.

§Return value

See also: cudaGraphicsResourceGetMappedPointer, cuGraphicsResourceGetMappedMipmappedArray.