Function rcudnn_sys::cudaGraphicsResourceGetMappedPointer[][src]

pub unsafe extern "C" fn cudaGraphicsResourceGetMappedPointer(
    devPtr: *mut *mut c_void,
    size: *mut usize,
    resource: cudaGraphicsResource_t
) -> cudaError_t
Expand description

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

Returns in \p *devPtr a pointer through which the mapped graphics resource \p resource may be accessed. Returns in \p *size the size of the memory in bytes which may be accessed from that pointer. The value set in \p devPtr 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 ::cudaErrorUnknown is returned. If \p resource is not mapped then ::cudaErrorUnknown is returned.

\param devPtr - Returned pointer through which \p resource may be accessed \param size - Returned size of the buffer accessible starting at \p *devPtr \param resource - Mapped resource to access

\return ::cudaSuccess, ::cudaErrorInvalidValue, ::cudaErrorInvalidResourceHandle, ::cudaErrorUnknown \notefnerr \note_init_rt \note_callback

\sa ::cudaGraphicsMapResources, ::cudaGraphicsSubResourceGetMappedArray, ::cuGraphicsResourceGetMappedPointer