cuda.bindings._v2.driver.graphics_resource_get_mapped_egl_frame#

cuda.bindings._v2.driver.graphics_resource_get_mapped_egl_frame(
intptr_t egl_frame,
intptr_t resource,
unsigned int index,
unsigned int mip_level,
)#

Get an EGL frame through which to access a registered EGL resource.

Returns an eglFrame pointer through which the registered graphics resource resource may be accessed. This API can only be called for registered EGL graphics resources. If resource is not registered, CUDA_ERROR_NOT_MAPPED is returned.

Parameters:
  • egl_frame (intptr_t) – Pointer to a CUeglFrame that will receive the frame data.

  • resource (intptr_t) – Registered graphics resource to access.

  • index (unsigned int) – Index for array textures.

  • mip_level (unsigned int) – Mipmap level for the resource.

See also

cuGraphicsResourceGetMappedEglFrame