Trait drm::buffer::Buffer

source ·
pub trait Buffer {
    // Required methods
    fn size(&self) -> (u32, u32);
    fn format(&self) -> DrmFourcc;
    fn pitch(&self) -> u32;
    fn handle(&self) -> Handle;
}
Expand description

Common functionality of all regular buffers.

Required Methods§

source

fn size(&self) -> (u32, u32)

The width and height of the buffer.

source

fn format(&self) -> DrmFourcc

The format of the buffer.

source

fn pitch(&self) -> u32

The pitch of the buffer.

source

fn handle(&self) -> Handle

The handle to the buffer.

Implementors§