pub unsafe extern "C" fn cudaGraphicsResourceGetMappedPointer(
devPtr: *mut *mut c_void,
size: *mut size_t,
resource: cudaGraphicsResource_t,
) -> cudaError_tExpand description
Get an device pointer through which to access a mapped graphics resource.
Returns in *devPtr a pointer through which the mapped graphics resource resource may be accessed. Returns in *size the size of the memory in bytes which may be accessed from that pointer. The value set in devPtr may change every time that resource is mapped.
If resource is not a buffer then it cannot be accessed via a pointer and cudaErrorUnknown is returned. If resource is not mapped then cudaErrorUnknown is returned.
ยงParameters
devPtr: Returned pointer through whichresourcemay be accessed.size: Returned size of the buffer accessible starting at*devPtr.resource: Mapped resource to access.