A class that stores the input vertex data for a shader program.
More...
#include <omGraphicsVertexBindingData.h>
A class that stores the input vertex data for a shader program.
om::graphics::materials::VertexBindingData::VertexBindingData |
( |
| ) |
|
Create a new shader binding data object with no allocated data.
om::graphics::materials::VertexBindingData::VertexBindingData |
( |
Size |
vertexBufferCapacity | ) |
|
Create a new shader binding data object with the specified initial capacity for each data type.
Size om::graphics::materials::VertexBindingData::getVertexBufferCount |
( |
| ) |
const |
|
inline |
Return an pointer to the internal array of shader vertex buffers.
VertexBuffer** om::graphics::materials::VertexBindingData::getVertexBuffers |
( |
| ) |
|
|
inline |
Return a pointer to the internal array of shader vertex buffers.
VertexBuffer* const* om::graphics::materials::VertexBindingData::getVertexBuffers |
( |
| ) |
const |
|
inline |
Return a const pointer to the internal array of shader vertex buffers.
VertexBuffer** om::graphics::materials::VertexBindingData::allocateVertexBuffers |
( |
Size |
buffersToAdd | ) |
|
|
inline |
Allocate the specified number of vertex buffers for this shader binding data and return a pointer to the buffer storage.
void om::graphics::materials::VertexBindingData::clearVertexBuffers |
( |
| ) |
|
|
inline |
Remove all stored vertex buffers from this shader binding data object.
Size om::graphics::materials::VertexBindingData::getMinimumVertexBufferCapacity |
( |
| ) |
const |
|
inline |
Return the smallest number of elements that are in any vertex buffer that is part of this shader pass.
If there are no vertex buffers attached, 0 is returned. This method can be used to make sure that a shader pass has enough vertex data for a particular draw call or index buffer.
void om::graphics::materials::VertexBindingData::setData |
( |
const VertexBindingData & |
other | ) |
|
Copy all data from the other vertex binding data object into this one.
const Size om::graphics::materials::VertexBindingData::DEFAULT_BUFFER_ARRAY_SIZE = 2 |
|
static |
The default size of a shader pass's buffer array.
The documentation for this class was generated from the following file: