#[repr(u64)]pub enum DriverCapability {
Show 14 variants
DumbBuffer = 1,
VBlankHighCRTC = 2,
DumbPreferredDepth = 3,
DumbPreferShadow = 4,
Prime = 5,
MonotonicTimestamp = 6,
ASyncPageFlip = 7,
CursorWidth = 8,
CursorHeight = 9,
AddFB2Modifiers = 16,
PageFlipTarget = 17,
CRTCInVBlankEvent = 18,
SyncObj = 19,
TimelineSyncObj = 20,
}
Expand description
Used to check which capabilities your graphics driver has.
Variants§
DumbBuffer = 1
DumbBuffer support for scanout
VBlankHighCRTC = 2
Unknown
DumbPreferredDepth = 3
Preferred depth to use for dumb buffers
DumbPreferShadow = 4
Unknown
Prime = 5
PRIME handles are supported
MonotonicTimestamp = 6
Unknown
ASyncPageFlip = 7
Asynchronous page flipping support
CursorWidth = 8
Width of cursor buffers
CursorHeight = 9
Height of cursor buffers
AddFB2Modifiers = 16
Create framebuffers with modifiers
PageFlipTarget = 17
Unknown
CRTCInVBlankEvent = 18
Uses the CRTC’s ID in vblank events
SyncObj = 19
SyncObj support
TimelineSyncObj = 20
Timeline SyncObj support
Trait Implementations§
source§impl Clone for DriverCapability
impl Clone for DriverCapability
source§fn clone(&self) -> DriverCapability
fn clone(&self) -> DriverCapability
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DriverCapability
impl Debug for DriverCapability
source§impl Hash for DriverCapability
impl Hash for DriverCapability
source§impl PartialEq for DriverCapability
impl PartialEq for DriverCapability
impl Copy for DriverCapability
impl Eq for DriverCapability
impl StructuralPartialEq for DriverCapability
Auto Trait Implementations§
impl Freeze for DriverCapability
impl RefUnwindSafe for DriverCapability
impl Send for DriverCapability
impl Sync for DriverCapability
impl Unpin for DriverCapability
impl UnwindSafe for DriverCapability
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)