initialize_context_from_va_def

Function initialize_context_from_va_def 

Source
pub unsafe fn initialize_context_from_va_def(
    display: VADisplay,
) -> Result<Context>
Expand description

Creates OpenCL context from VA.

§Parameters

  • display: - VADisplay for which CL interop should be established.
  • tryInterop: - try to set up for interoperability, if true; set up for use slow copy if false.

§Returns

Returns reference to OpenCL Context

§Note

This alternative version of initialize_context_from_va function uses the following default values for its arguments:

  • try_interop: true