Struct luminance::buffer::Buffer [] [src]

pub struct Buffer<C, T> where C: HasBuffer {
    pub repr: C::ABuffer,
    pub size: usize,
    // some fields omitted
}

A Buffer is a GPU region you can picture as an array. It has a static size and cannot be resized. The size is expressed in number of elements lying in the buffer, not in bytes.

Fields

Methods

impl<C, T> Buffer<C, T> where C: HasBuffer
[src]

Create a new Buffer with a given number of elements.

Retrieve an element from the Buffer.

Checks boundaries.

Retrieve the whole content of the Buffer.

Set a value at a given index in the Buffer.

Checks boundaries.

Fill the Buffer with a single value.

Fill the whole buffer with an array.

Trait Implementations

impl<C: Debug, T: Debug> Debug for Buffer<C, T> where C: HasBuffer, C::ABuffer: Debug
[src]

Formats the value using the given formatter.

impl<C, T> Drop for Buffer<C, T> where C: HasBuffer
[src]

A method called when the value goes out of scope. Read more