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§
sourcefn format(&self) -> PixelFormat
fn format(&self) -> PixelFormat
The format of the buffer.