Skip to main content

cuGraphicsResourceGetMappedMipmappedArray

Function cuGraphicsResourceGetMappedMipmappedArray 

Source
pub unsafe extern "C" fn cuGraphicsResourceGetMappedMipmappedArray(
    pMipmappedArray: *mut CUmipmappedArray,
    resource: CUgraphicsResource,
) -> CUresult
Expand description

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

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

If resource is not a texture then it cannot be accessed via a mipmapped array and cudaError_enum::CUDA_ERROR_NOT_MAPPED_AS_ARRAY is returned. If resource is not mapped then cudaError_enum::CUDA_ERROR_NOT_MAPPED is returned.

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

§Parameters

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

§Return value

See also: cuGraphicsResourceGetMappedPointer, cudaGraphicsResourceGetMappedMipmappedArray.