Function cuGraphicsResourceGetMappedPointer_v2

Source
pub unsafe extern "C" fn cuGraphicsResourceGetMappedPointer_v2(
    pDevPtr: *mut CUdeviceptr,
    pSize: *mut usize,
    resource: CUgraphicsResource,
) -> CUresult
Expand description

\brief Get a device pointer through which to access a mapped graphics resource.

Returns in \p *pDevPtr a pointer through which the mapped graphics resource \p resource may be accessed. Returns in \p pSize the size of the memory in bytes which may be accessed from that pointer. The value set in \p pPointer may change every time that \p resource is mapped.

If \p resource is not a buffer then it cannot be accessed via a pointer and ::CUDA_ERROR_NOT_MAPPED_AS_POINTER is returned. If \p resource is not mapped then ::CUDA_ERROR_NOT_MAPPED is returned. * \param pDevPtr - Returned pointer through which \p resource may be accessed \param pSize - Returned size of the buffer accessible starting at \p *pPointer \param resource - Mapped resource to access

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_NOT_MAPPED, ::CUDA_ERROR_NOT_MAPPED_AS_POINTER \notefnerr

\sa ::cuGraphicsMapResources, ::cuGraphicsSubResourceGetMappedArray, ::cudaGraphicsResourceGetMappedPointer