|
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 a single element in a buffer layout. More...
#include <Buffer.h>
Public Member Functions | |
| BufferElement () | |
| BufferElement (ShaderDataType type, const std::string &name, bool normalized=false) | |
| Constructs a BufferElement with the given type, name, and normalization flag. | |
| uint32_t | GetComponentCount () const |
| Returns the number of components in the buffer element based on its ShaderDataType. | |
Public Attributes | |
| std::string | Name |
| The name of the buffer element. | |
| ShaderDataType | Type |
| The data type of the buffer element. | |
| uint32_t | Size |
| The size in bytes of the buffer element. | |
| uint32_t | Offset |
| The offset in bytes of the buffer element from the start of the buffer. | |
| bool | Normalized |
| Whether the buffer element is normalized. | |
Represents a single element in a buffer layout.
|
inline |
|
inline |
Constructs a BufferElement with the given type, name, and normalization flag.
| type | The ShaderDataType of the buffer element. |
| name | The name of the buffer element. |
| normalized | Whether the buffer element is normalized. |
References BufferElement(), Normalized, Offset, Vesper::ShaderDataTypeSize(), Size, and Type.
Referenced by BufferElement().
|
inline |
Returns the number of components in the buffer element based on its ShaderDataType.
References Vesper::Bool, Vesper::Float, Vesper::Float2, Vesper::Float3, Vesper::Float4, Vesper::Int, Vesper::Int2, Vesper::Int3, Vesper::Int4, Vesper::Mat3, Vesper::Mat4, and Type.
| std::string Vesper::BufferElement::Name |
The name of the buffer element.
| bool Vesper::BufferElement::Normalized |
Whether the buffer element is normalized.
Referenced by BufferElement().
| uint32_t Vesper::BufferElement::Offset |
The offset in bytes of the buffer element from the start of the buffer.
Referenced by BufferElement().
| uint32_t Vesper::BufferElement::Size |
The size in bytes of the buffer element.
Referenced by BufferElement().
| ShaderDataType Vesper::BufferElement::Type |
The data type of the buffer element.
Referenced by BufferElement(), and GetComponentCount().