cuda.bindings._v2.driver.graphics_map_resources#
- cuda.bindings._v2.driver.graphics_map_resources(
- unsigned int count,
- resources,
- intptr_t h_stream,
Map graphics resources for access by CUDA.
Maps the
countgraphics resources inresourcesfor access by CUDA. The resources inresourcesmay be accessed by CUDA until they are unmapped. The graphics API from whichresourceswere registered should not access any resources while they are mapped by CUDA. If an application does so, the results are undefined. This function provides the synchronization guarantee that any graphics calls issued beforegraphics_map_resources()will complete before any subsequent CUDA work issued instreambegins. Ifresourcesincludes any duplicate entries thenCUDA_ERROR_INVALID_HANDLEis returned. If any ofresourcesare presently mapped for access by CUDA thenCUDA_ERROR_ALREADY_MAPPEDis returned.- Parameters:
See also
cuGraphicsMapResources