|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Data for object culling. More...
#include <RenderData.h>
Public Attributes | |
| glm::vec4 | worldPositionAndRadius |
| The center point of the bounding sphere (w component stores radius) | |
| uint32_t | objectIndex |
| Object index linking back to the Object Data. | |
| uint32_t | _padding [3] |
Data for object culling.
Layout must match GLSL std430 PrimitiveCullingData struct. Uses vec4 for worldPosition to avoid vec3 alignment issues in std430 (vec3 has 16-byte alignment in GLSL but 12-byte size in C++)
Definition at line 143 of file RenderData.h.
| uint32_t EngineCore::ObjectCullingData::_padding[3] |
Definition at line 149 of file RenderData.h.
| uint32_t EngineCore::ObjectCullingData::objectIndex |
Object index linking back to the Object Data.
Definition at line 148 of file RenderData.h.
Referenced by EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().
| glm::vec4 EngineCore::ObjectCullingData::worldPositionAndRadius |
The center point of the bounding sphere (w component stores radius)
Definition at line 146 of file RenderData.h.
Referenced by EngineCore::RenderingDataManager::updatePrimitiveData(), and EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().