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,
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
flagsparameter, seecuCtxCreate().- Parameters:
flags (unsigned int) – Options for CUDA context creation.
device (int) – Device on which to create the context.
vdp_device (VdpDevice) – The
VdpDeviceto interop with.vdp_get_proc_address (intptr_t) – VDPAU’s
VdpGetProcAddressfunction pointer.
- Returns:
Returned CUDA context.
- Return type:
intptr_t
See also
cuVDPAUCtxCreate_v2