Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
EngineCore::ObjectCullingData Struct Reference

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]

Detailed Description

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++)

Date
2025-10-09
Author
Konstantin Passig

Definition at line 143 of file RenderData.h.

Member Data Documentation

◆ _padding

uint32_t EngineCore::ObjectCullingData::_padding[3]

Definition at line 149 of file RenderData.h.

◆ objectIndex

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().

◆ worldPositionAndRadius

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().


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