pub struct SelectionContext {
pub preferred_memory: MemoryDomainKind,
pub prefer_hardware: bool,
}Expand description
What the auto-plug search optimizes for among elements that satisfy the same
caps. The default (System memory, no hardware preference) reproduces a plain
pipeline’s selection, so existing behavior is unchanged.
Fields§
§preferred_memory: MemoryDomainKindThe memory domain the consumer wants the frames in (avoids a download when
it matches a producer’s CapabilityDescriptor::output_memory).
prefer_hardware: boolPrefer a hardware path when one is available.
Trait Implementations§
Source§impl Clone for SelectionContext
impl Clone for SelectionContext
Source§fn clone(&self) -> SelectionContext
fn clone(&self) -> SelectionContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelectionContext
Source§impl Debug for SelectionContext
impl Debug for SelectionContext
Source§impl Default for SelectionContext
impl Default for SelectionContext
Source§fn default() -> SelectionContext
fn default() -> SelectionContext
Returns the “default value” for a type. Read more
impl Eq for SelectionContext
Source§impl PartialEq for SelectionContext
impl PartialEq for SelectionContext
impl StructuralPartialEq for SelectionContext
Auto Trait Implementations§
impl Freeze for SelectionContext
impl RefUnwindSafe for SelectionContext
impl Send for SelectionContext
impl Sync for SelectionContext
impl Unpin for SelectionContext
impl UnsafeUnpin for SelectionContext
impl UnwindSafe for SelectionContext
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