cuda.bindings._v2.driver.vdpau_ctx_create_v2#

cuda.bindings._v2.driver.vdpau_ctx_create_v2(
unsigned int flags,
int device,
VdpDevice vdp_device,
intptr_t vdp_get_proc_address,
) → intptr_t#

Create a CUDA context for interoperability with VDPAU.

Creates a new CUDA context, initializes VDPAU interoperability, and associates the CUDA context with the calling thread. It must be called before performing any other VDPAU interoperability operations. It may fail if the needed VDPAU driver facilities are not available. For usage of the flags parameter, see cuCtxCreate().

Parameters:
  • flags (unsigned int) – Options for CUDA context creation.

  • device (int) – Device on which to create the context.

  • vdp_device (VdpDevice) – The VdpDevice to interop with.

  • vdp_get_proc_address (intptr_t) – VDPAU’s VdpGetProcAddress function pointer.

Returns:

Returned CUDA context.

Return type:

intptr_t

See also

cuVDPAUCtxCreate_v2