*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.
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. *
|- Returned pointer through which
resource may be accessed
|- Returned size of the buffer accessible starting at
|- Mapped resource to access
- cudaSuccess, cudaErrorInvalidValue, cudaErrorInvalidResourceHandle, cudaErrorUnknown
- Note that this function may also return error codes from previous, asynchronous launches.
- See also:
- cudaGraphicsMapResources, cudaGraphicsSubResourceGetMappedArray