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

Mapping from MeshAsset primitive to shared geometry buffer location. Used by RenderingDataManager to track deduplicated geometry. More...

#include <RenderData.h>

Public Attributes

uint32_t meshGeometryId
 Index into MeshGeometryData buffer.
uint32_t meshletStartIndex
 First meshlet in shared buffer.
uint32_t meshletCount
 Number of meshlets.
uint32_t vertexBaseOffset
 Offset into vertex buffer.
uint32_t triangleBaseOffset
 Offset into triangle buffer.
uint32_t vsIndexOffset
 Offset into VS index buffer (contiguous uint32_t)
uint32_t vsIndexCount
 Number of indices (triangleCount * 3)
bool isSingleMeshlet
 True if meshletCount == 1 (use vertex shader path)
uint32_t pipelineIndex
 Cached pipeline index from material.
glm::vec3 localBoundsCenter
 Cached local bounding sphere center.
float localBoundsRadius
 Cached local bounding sphere radius.

Detailed Description

Mapping from MeshAsset primitive to shared geometry buffer location. Used by RenderingDataManager to track deduplicated geometry.

Date
2026-01-17
Author
Konstantin Passig

Definition at line 312 of file RenderData.h.

Member Data Documentation

◆ isSingleMeshlet

bool EngineCore::MeshGeometryMapping::isSingleMeshlet

True if meshletCount == 1 (use vertex shader path)

Definition at line 322 of file RenderData.h.

Referenced by EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().

◆ localBoundsCenter

glm::vec3 EngineCore::MeshGeometryMapping::localBoundsCenter

Cached local bounding sphere center.

Definition at line 325 of file RenderData.h.

Referenced by EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().

◆ localBoundsRadius

float EngineCore::MeshGeometryMapping::localBoundsRadius

Cached local bounding sphere radius.

Definition at line 326 of file RenderData.h.

Referenced by EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().

◆ meshGeometryId

uint32_t EngineCore::MeshGeometryMapping::meshGeometryId

Index into MeshGeometryData buffer.

Definition at line 314 of file RenderData.h.

Referenced by EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().

◆ meshletCount

uint32_t EngineCore::MeshGeometryMapping::meshletCount

Number of meshlets.

Definition at line 316 of file RenderData.h.

Referenced by EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().

◆ meshletStartIndex

uint32_t EngineCore::MeshGeometryMapping::meshletStartIndex

First meshlet in shared buffer.

Definition at line 315 of file RenderData.h.

Referenced by EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().

◆ pipelineIndex

uint32_t EngineCore::MeshGeometryMapping::pipelineIndex

Cached pipeline index from material.

Definition at line 324 of file RenderData.h.

Referenced by EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().

◆ triangleBaseOffset

uint32_t EngineCore::MeshGeometryMapping::triangleBaseOffset

Offset into triangle buffer.

Definition at line 318 of file RenderData.h.

Referenced by EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().

◆ vertexBaseOffset

uint32_t EngineCore::MeshGeometryMapping::vertexBaseOffset

Offset into vertex buffer.

Definition at line 317 of file RenderData.h.

Referenced by EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().

◆ vsIndexCount

uint32_t EngineCore::MeshGeometryMapping::vsIndexCount

Number of indices (triangleCount * 3)

Definition at line 321 of file RenderData.h.

Referenced by EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().

◆ vsIndexOffset

uint32_t EngineCore::MeshGeometryMapping::vsIndexOffset

Offset into VS index buffer (contiguous uint32_t)

Definition at line 320 of file RenderData.h.

Referenced by 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