pub struct AcceptedBuffers {
pub gpu_memory: Vec<GpuMemory>,
pub shared_memory: bool,
}Expand description
What a compositor shows a layer’s pictures from (Compositor::accepted_buffers): GPU memory
it imports, and shared memory it maps. A producer makes buffers of a format both it and the
compositor take, never of the compositor’s list alone.
Fields§
§gpu_memory: Vec<GpuMemory>The GPU memory it imports, one entry per GPU, in its order of preference: the first is the GPU it composites on, where a producer’s buffers show with no copy. Empty where it imports none.
Whether it also shows pictures from shared memory, which the producer writes with the CPU:
Wayland’s wl_shm. No other system Waft runs on has it.
Implementations§
Trait Implementations§
Source§impl Clone for AcceptedBuffers
impl Clone for AcceptedBuffers
Source§impl Debug for AcceptedBuffers
impl Debug for AcceptedBuffers
Source§impl Default for AcceptedBuffers
impl Default for AcceptedBuffers
impl Eq for AcceptedBuffers
Source§impl PartialEq for AcceptedBuffers
impl PartialEq for AcceptedBuffers
impl StructuralPartialEq for AcceptedBuffers
Auto Trait Implementations§
impl Forget for AcceptedBuffers
impl Freeze for AcceptedBuffers
impl Move for AcceptedBuffers
impl RefUnwindSafe for AcceptedBuffers
impl Send for AcceptedBufferswhere
RawVecInner: Send,
impl Sync for AcceptedBufferswhere
RawVecInner: Sync,
impl Unpin for AcceptedBuffers
impl UnsafeUnpin for AcceptedBuffers
impl UnwindSafe for AcceptedBufferswhere
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.