Packs gathered lights into a std140 uniform buffer with 6 vec4s per light.
More...
#include <kanzi/core.ui/graphics3d/light_buffer.hpp>
Packs gathered lights into a std140 uniform buffer with 6 vec4s per light.
◆ LightBuffer()
| kanzi::LightBuffer::LightBuffer |
( |
| ) |
|
|
explicit |
◆ populate()
Populates the buffer from gathered light ranges.
- Parameters
-
| gatherPass | Gather lights render pass that has been executed. |
◆ toByteSpan()
Returns the buffer contents as a byte span.
◆ MaxLights
| constexpr size_t kanzi::LightBuffer::MaxLights |
|
staticconstexpr |
Maximum number of lights in the buffer.
Must match KZ_MAX_LIGHTS in lights.glsl.
The documentation for this class was generated from the following file: