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

Buffer is going to be presented to the screen using an API such as KMS

Buffer is going to be used as cursor

Buffer is to be used for rendering - for example it is going to be used as the storage for a color buffer

Buffer can be used for gbm_bo_write. This is guaranteed to work with BufferObjectFlags::Cursor, but may not work for other combinations.

Buffer is linear, i.e. not tiled.

Trait Implementations

impl Debug for BufferObjectFlags
[src]

[src]

Formats the value using the given formatter.

impl Clone for BufferObjectFlags
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for BufferObjectFlags
[src]

impl PartialEq for BufferObjectFlags
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for BufferObjectFlags
[src]

impl Hash for BufferObjectFlags
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more