pub struct VulkanCandidate {
pub index: usize,
pub loader_index: Option<usize>,
pub name: String,
pub device_type: DeviceType,
pub shares: Result<(), String>,
pub decode_codecs: Vec<&'static str>,
pub encode_codecs: Vec<&'static str>,
}Expand description
One Vulkan adapter as the shared device’s choice sees it, read without opening a device.
Fields§
§index: usizePosition in the Vulkan enumeration, as ALPHA2_GPU_ADAPTER and
SharedVulkanContext::create_on use it.
loader_index: Option<usize>Position in the loader’s physical-device order, which FFmpeg takes for its own device.
name: StringThe adapter’s name, which a name pin matches.
device_type: DeviceTypeIts kind, for the high-performance order.
Whether the shared device can be made on it, or why not.
decode_codecs: Vec<&'static str>The codecs its decode extensions cover.
encode_codecs: Vec<&'static str>The codecs its encode queue and extensions cover.
Trait Implementations§
Source§impl Clone for VulkanCandidate
impl Clone for VulkanCandidate
Auto Trait Implementations§
impl Freeze for VulkanCandidate
impl RefUnwindSafe for VulkanCandidate
impl Send for VulkanCandidate
impl Sync for VulkanCandidate
impl Unpin for VulkanCandidate
impl UnsafeUnpin for VulkanCandidate
impl UnwindSafe for VulkanCandidate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more