Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Rendering::GpuBuffers::ClusterLodData Struct Reference

Per-cluster LOD data for GPU-driven LOD selection. More...

#include <RenderData.h>

Public Attributes

glm::vec4 boundsPositionAndRadius
 xyz = local center, w = radius
float error
 Simplification error (mesh-local units)
int32_t refinedGroupId
 Group this cluster simplifies (-1 for base geometry)
uint32_t meshletIndex
 Index into UnifiedMeshlet buffer.
int32_t groupId
 Group this cluster belongs to (for parent error check)
uint64_t meshletDataAddress
 Device address of the referenced UnifiedMeshlet.
uint32_t _padding [2] {}

Detailed Description

Per-cluster LOD data for GPU-driven LOD selection.

Layout matches GLSL std430 ClusterLodData struct (48 bytes).

Definition at line 441 of file RenderData.h.

Member Data Documentation

◆ _padding

uint32_t Engine::Rendering::GpuBuffers::ClusterLodData::_padding[2] {}

Definition at line 449 of file RenderData.h.

◆ boundsPositionAndRadius

glm::vec4 Engine::Rendering::GpuBuffers::ClusterLodData::boundsPositionAndRadius

xyz = local center, w = radius

Definition at line 443 of file RenderData.h.

◆ error

float Engine::Rendering::GpuBuffers::ClusterLodData::error

Simplification error (mesh-local units)

Definition at line 444 of file RenderData.h.

◆ groupId

int32_t Engine::Rendering::GpuBuffers::ClusterLodData::groupId

Group this cluster belongs to (for parent error check)

Definition at line 447 of file RenderData.h.

◆ meshletDataAddress

uint64_t Engine::Rendering::GpuBuffers::ClusterLodData::meshletDataAddress

Device address of the referenced UnifiedMeshlet.

Definition at line 448 of file RenderData.h.

◆ meshletIndex

uint32_t Engine::Rendering::GpuBuffers::ClusterLodData::meshletIndex

Index into UnifiedMeshlet buffer.

Definition at line 446 of file RenderData.h.

◆ refinedGroupId

int32_t Engine::Rendering::GpuBuffers::ClusterLodData::refinedGroupId

Group this cluster simplifies (-1 for base geometry)

Definition at line 445 of file RenderData.h.


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