Skip to main content

VulkanDeviceInfo

Struct VulkanDeviceInfo 

Source
pub struct VulkanDeviceInfo {
Show 17 fields pub instance: u64, pub physical_device: u64, pub device: u64, pub graphics_queue_family: u32, pub graphics_queue_count: u32, pub decode_queue_family: u32, pub decode_queue_count: u32, pub decode_video_caps: u32, pub encode_queue_family: u32, pub encode_queue_count: u32, pub encode_video_caps: u32, pub core_features: [u32; 4], pub synchronization2: u32, pub sampler_ycbcr_conversion: u32, pub video_maintenance1: u32, pub instance_extensions: Vec<String>, pub device_extensions: Vec<String>,
}
Expand description

Raw shared-device description used to initialize FFmpeg’s Vulkan context.

Fields§

§instance: u64

Raw VkInstance.

§physical_device: u64

Raw VkPhysicalDevice.

§device: u64

Raw VkDevice.

§graphics_queue_family: u32

Queue family used by wgpu and native barriers.

§graphics_queue_count: u32

Enabled graphics queues in that family.

§decode_queue_family: u32

Dedicated video decode queue family.

§decode_queue_count: u32

Enabled decode queues in that family.

§decode_video_caps: u32

Vulkan video codec-operation flags.

§encode_queue_family: u32

Dedicated video encode queue family. Ignored when the count is zero.

§encode_queue_count: u32

Enabled encode queues in that family, or zero when this device has none.

§encode_video_caps: u32

Vulkan video encode codec-operation flags.

§core_features: [u32; 4]

Enabled core feature bits required by FFmpeg’s context contract.

§synchronization2: u32

Whether synchronization2 is enabled on the device.

§sampler_ycbcr_conversion: u32

Whether samplerYcbcrConversion is enabled on the device.

§video_maintenance1: u32

Whether videoMaintenance1 is enabled on the device.

§instance_extensions: Vec<String>

Enabled instance extension names.

§device_extensions: Vec<String>

Enabled device extension names.

Trait Implementations§

Source§

impl Clone for VulkanDeviceInfo

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VulkanDeviceInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.