Enum gbm::BufferObjectFlags
[−]
[src]
pub enum BufferObjectFlags { Scanout, Cursor, Rendering, Write, Linear, }
Flags to indicate the intended use for the buffer - these are passed into
Device::create_buffer_object
.
Use Device::is_format_supported
to check if the combination of format
and use flags are supported
Variants
Scanout
Buffer is going to be presented to the screen using an API such as KMS
Cursor
Buffer is going to be used as cursor
Rendering
Buffer is to be used for rendering - for example it is going to be used as the storage for a color buffer
Write
Buffer can be used for gbm_bo_write. This is guaranteed to work
with BufferObjectFlags::Cursor
, but may not work for other combinations.
Linear
Buffer is linear, i.e. not tiled.
Trait Implementations
impl Debug for BufferObjectFlags
[src]
impl Clone for BufferObjectFlags
[src]
fn clone(&self) -> BufferObjectFlags
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for BufferObjectFlags
[src]
impl PartialEq for BufferObjectFlags
[src]
fn eq(&self, __arg_0: &BufferObjectFlags) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.