pub struct DmaBufFormatCapability {
pub format: SurfaceFormatKind,
pub modifiers: Vec<u64>,
}Expand description
One surface format, and every layout a renderer can import for it.
modifiers holds each DRM format modifier the importer will bind for this format, with
DmaBufHandle::LINEAR present when a linear buffer is accepted. It is what a producer
negotiates with: pass these to the allocator (VA-API’s VASurfaceAttribDRMFormatModifiers, a
GBM allocator’s modifier list) so the buffer it makes is one the renderer can sample.
Fields§
§format: SurfaceFormatKindThe format.
modifiers: Vec<u64>The modifiers accepted for it. Empty means the renderer cannot import the format at all.
Implementations§
Trait Implementations§
Source§impl Clone for DmaBufFormatCapability
impl Clone for DmaBufFormatCapability
Source§impl Debug for DmaBufFormatCapability
impl Debug for DmaBufFormatCapability
impl Eq for DmaBufFormatCapability
Source§impl PartialEq for DmaBufFormatCapability
impl PartialEq for DmaBufFormatCapability
impl StructuralPartialEq for DmaBufFormatCapability
Auto Trait Implementations§
impl Freeze for DmaBufFormatCapability
impl RefUnwindSafe for DmaBufFormatCapability
impl Send for DmaBufFormatCapability
impl Sync for DmaBufFormatCapability
impl Unpin for DmaBufFormatCapability
impl UnsafeUnpin for DmaBufFormatCapability
impl UnwindSafe for DmaBufFormatCapability
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
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.