pub struct GpuMemory {
pub gpu: Option<GpuId>,
pub formats: Vec<AcceptedFormat>,
}Expand description
The formats a compositor imports from one GPU’s memory.
Fields§
§gpu: Option<GpuId>The GPU the buffers are made on; None where the system names none (macOS, iOS and
Android, whose compositors take memory of any of the machine’s GPUs).
formats: Vec<AcceptedFormat>The formats, in the compositor’s order of preference.
Trait Implementations§
impl Eq for GpuMemory
impl StructuralPartialEq for GpuMemory
Auto Trait Implementations§
impl Forget for GpuMemory
impl Freeze for GpuMemory
impl Move for GpuMemory
impl RefUnwindSafe for GpuMemory
impl Send for GpuMemorywhere
RawVecInner: Send,
impl Sync for GpuMemorywhere
RawVecInner: Sync,
impl Unpin for GpuMemory
impl UnsafeUnpin for GpuMemory
impl UnwindSafe for GpuMemorywhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.