cuda.bindings._v2.driver.graphics_resource_get_mapped_pointer_v2#
- cuda.bindings._v2.driver.graphics_resource_get_mapped_pointer_v2(intptr_t resource) tuple#
Get a device pointer through which to access a mapped graphics resource.
Returns in
*p_dev_ptra pointer through which the mapped graphics resourceresourcemay be accessed. Returns inp_sizethe size of the memory in bytes which may be accessed from that pointer. The value set inp_dev_ptrmay change every time thatresourceis mapped. Ifresourceis not a buffer then it cannot be accessed via a pointer andCUDA_ERROR_NOT_MAPPED_AS_POINTERis returned. Ifresourceis not mapped thenCUDA_ERROR_NOT_MAPPEDis returned.- Parameters:
resource (intptr_t) – Mapped resource to access.
- Returns:
- uint64_t: Returned pointer through which
resourcemay be accessed.
- uint64_t: Returned pointer through which
- size_t: Returned size of the buffer accessible starting at
*p_dev_ptr.
- Return type:
A 2-tuple containing
See also
cuGraphicsResourceGetMappedPointer_v2