A helper class to build uniform blocks based on reflection information. More...
#include <kanzi/gfx/reflection.hpp>
Public Types | |
| enum class | ReturnCode { Success , MemberNotFound , MismatchingTypeInformation , DataWrongSize } |
| Defines the return codes for the set operation. More... | |
Public Member Functions | |
| auto | getData () const |
| Gets the data span. | |
| template<typename T > | |
| ReturnCode | set (const string &name, const T &data) |
| Sets a uniform value with a given name and value. | |
| UniformBlockBuilder (const InterfaceBlock &reflectionInfo, span< byte > data) | |
| Constructor. | |
A helper class to build uniform blocks based on reflection information.
|
inline |
Constructor.
| reflectionInfo | The interface block reflection data. |
| data | The data to build into. |
|
inline |
Gets the data span.
|
inline |
Sets a uniform value with a given name and value.
| name | The name of the uniform. |
| data | The value to set. |
| T | The value type. |