Packs data into a std140 uniform buffer. More...
#include <kanzi/core.ui/graphics3d/scene_buffer.hpp>
Public Member Functions | |
| void | populate (const DrawObjectsRenderPass &drawPass) |
| Populates the buffer from Draw Objects Render Pass. | |
| SceneBuffer () | |
| Constructor. | |
| ConstByteSpan | toByteSpan () const |
| Returns the buffer contents as a byte span. | |
Packs data into a std140 uniform buffer.
|
explicit |
Constructor.
| void kanzi::SceneBuffer::populate | ( | const DrawObjectsRenderPass & | drawPass | ) |
Populates the buffer from Draw Objects Render Pass.
| drawPass | Draw Objects Render Pass to read the camera state from. |
| ConstByteSpan kanzi::SceneBuffer::toByteSpan | ( | ) | const |
Returns the buffer contents as a byte span.