|
Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine. GitHub | Vesper Updates | Creator |
Represents the layout of a buffer, consisting of multiple BufferElements. More...
#include <Buffer.h>
Public Member Functions | |
| BufferLayout () | |
| BufferLayout (const std::initializer_list< BufferElement > &elements) | |
| Constructs a BufferLayout with the given list of BufferElements. | |
| const std::vector< BufferElement > & | GetElements () const |
| Returns the list of BufferElements in the layout. | |
| uint32_t | GetStride () const |
| Returns the stride (total size in bytes) of the buffer layout. | |
| std::vector< BufferElement >::iterator | begin () |
| std::vector< BufferElement >::const_iterator | begin () const |
| std::vector< BufferElement >::iterator | end () |
| std::vector< BufferElement >::const_iterator | end () const |
Private Member Functions | |
| void | CalculateOffsetsAndStride () |
| Calculates the offsets and stride for the buffer layout based on its elements. | |
Private Attributes | |
| std::vector< BufferElement > | m_Elements |
| uint32_t | m_Stride = 0 |
Represents the layout of a buffer, consisting of multiple BufferElements.
|
inline |
|
inline |
Constructs a BufferLayout with the given list of BufferElements.
| elements | The list of BufferElements that make up the layout. Automatically calculates offsets and stride. |
References BufferLayout(), and m_Stride.
Referenced by BufferLayout().
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
Returns the list of BufferElements in the layout.
|
inline |
|
private |
|
private |
Referenced by BufferLayout(), and GetStride().