Skip to main content

create_vulkan_device_context

Function create_vulkan_device_context 

Source
pub unsafe fn create_vulkan_device_context(
    info: &VulkanDeviceInfo,
) -> Result<AVHWDeviceContext, BridgeError>
Expand description

Initializes an FFmpeg Vulkan device context over an application-owned device.

§Safety

The handles in info must be live, belong together, have been created with the queues, features and extensions info names, and outlive the returned context.

§Errors

Returns an input error for invalid extension names or an FFmpeg error when the context cannot be initialized.