pub struct BufferBuilder { /* private fields */ }
Expand description

A buffer is a block of memory that can be used to store data that can be accessed by the GPU. The buffer is created with a length, usage, and properties that determine how the buffer can be used.

Implementations§

Creates a new buffer builder of type vertex.

Builds a buffer from a given mesh and allocates it’s memory on to the GPU.

Sets the length of the buffer (In bytes).

Sets the type of buffer to create.

Sets the usage of the buffer.

Sets the properties of the buffer.

Build a buffer utilizing the current render context

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.