|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
CPU-side render metadata for one mesh primitive. More...
#include <RenderData.h>
Public Attributes | |
| glm::vec3 | boundingSphereWorldPosition |
| World-space center of the primitive bounding sphere. | |
| float | boundingSphereRadius |
| World-space radius of the primitive bounding sphere. | |
| uint32_t | meshletOffset |
| First meshlet for this primitive in the unified meshlet buffer. | |
| uint32_t | meshletCount |
| Number of meshlets owned by this primitive. | |
| uint32_t | primitiveIndex |
| Index used by shader buffers to look up per-primitive data. | |
CPU-side render metadata for one mesh primitive.
The renderer builds this from loaded mesh assets before writing culling and meshlet buffers. Bounds are in world space and are used by CPU-side staging and GPU culling preparation.
Definition at line 28 of file RenderData.h.
| float Engine::Rendering::CpuPrimitiveData::boundingSphereRadius |
World-space radius of the primitive bounding sphere.
Definition at line 31 of file RenderData.h.
| glm::vec3 Engine::Rendering::CpuPrimitiveData::boundingSphereWorldPosition |
World-space center of the primitive bounding sphere.
Definition at line 30 of file RenderData.h.
| uint32_t Engine::Rendering::CpuPrimitiveData::meshletCount |
Number of meshlets owned by this primitive.
Definition at line 34 of file RenderData.h.
| uint32_t Engine::Rendering::CpuPrimitiveData::meshletOffset |
First meshlet for this primitive in the unified meshlet buffer.
Definition at line 33 of file RenderData.h.
| uint32_t Engine::Rendering::CpuPrimitiveData::primitiveIndex |
Index used by shader buffers to look up per-primitive data.
Definition at line 35 of file RenderData.h.