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