Trait drm::buffer::Buffer

source ·
pub trait Buffer {
    fn size(&self) -> (u32, u32);
    fn format(&self) -> PixelFormat;
    fn pitch(&self) -> u32;
    fn handle(&self) -> Id;
}
Expand description

Common functionality of all buffers.

Required Methods§

The width and height of the buffer.

The format of the buffer.

The pitch of the buffer.

The GEM handle of the buffer.

Implementors§