pub struct PlatformGraphicsDrmFormat {
pub format: u32,
pub modifier: u64,
}Expand description
A DRM fourcc format + modifier pair the GPU backend can import as a
KnownPlatformGraphicsExternalImageHandleTypes::DMA_BUF_FILE_DESCRIPTOR image.
format is a DRM_FORMAT_* fourcc; modifier is a
DRM_FORMAT_MOD_* layout (PlatformGraphicsExternalImageDmaBufProperties::DRM_MODIFIER_INVALID
meaning the implicit, driver-chosen layout).
Fields§
§format: u32§modifier: u64Implementations§
Trait Implementations§
Source§impl Clone for PlatformGraphicsDrmFormat
impl Clone for PlatformGraphicsDrmFormat
impl Copy for PlatformGraphicsDrmFormat
Source§impl Debug for PlatformGraphicsDrmFormat
impl Debug for PlatformGraphicsDrmFormat
impl Eq for PlatformGraphicsDrmFormat
Source§impl Hash for PlatformGraphicsDrmFormat
impl Hash for PlatformGraphicsDrmFormat
impl StructuralPartialEq for PlatformGraphicsDrmFormat
Auto Trait Implementations§
impl Freeze for PlatformGraphicsDrmFormat
impl RefUnwindSafe for PlatformGraphicsDrmFormat
impl Send for PlatformGraphicsDrmFormat
impl Sync for PlatformGraphicsDrmFormat
impl Unpin for PlatformGraphicsDrmFormat
impl UnsafeUnpin for PlatformGraphicsDrmFormat
impl UnwindSafe for PlatformGraphicsDrmFormat
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more