Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Rendering::CpuPrimitiveData Struct Reference

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.

Detailed Description

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.

Member Data Documentation

◆ boundingSphereRadius

float Engine::Rendering::CpuPrimitiveData::boundingSphereRadius

World-space radius of the primitive bounding sphere.

Definition at line 31 of file RenderData.h.

◆ boundingSphereWorldPosition

glm::vec3 Engine::Rendering::CpuPrimitiveData::boundingSphereWorldPosition

World-space center of the primitive bounding sphere.

Definition at line 30 of file RenderData.h.

◆ meshletCount

uint32_t Engine::Rendering::CpuPrimitiveData::meshletCount

Number of meshlets owned by this primitive.

Definition at line 34 of file RenderData.h.

◆ meshletOffset

uint32_t Engine::Rendering::CpuPrimitiveData::meshletOffset

First meshlet for this primitive in the unified meshlet buffer.

Definition at line 33 of file RenderData.h.

◆ primitiveIndex

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.


The documentation for this struct was generated from the following file:
  • /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/Renderer/RenderData.h