Struct vulkano_framing::Buffer [] [src]

pub struct Buffer<T> { /* fields omitted */ }

Wraps a buffer, providing functions that allow the user to interpret it as a frame instead of as a bunch of pixels.

Methods

impl<T> Buffer<T> where
    T: Send + Sync + 'static, 
[src]

Creates the wrapper.

Expects a width and height in pixels, and a buffer of length width * height. A buffer of incorrect length will cause a BadLength error to be returned.

impl<T: 'static> Buffer<T>
[src]

Try to get a read-only frame from the buffer.

Try to get a mutable frame from the buffer.

impl<T> Buffer<T>
[src]

Get back the underlying buffer.

The width of the image, in pixels.

The height of the image, in pixels.

Trait Implementations

impl<T: Clone> Clone for Buffer<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Buffer<T>
[src]

Formats the value using the given formatter.