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

GPU-side meshlet descriptor consumed by mesh shaders. More...

#include <RenderData.h>

Public Attributes

uint32_t vertexCount
 Number of vertices referenced by this meshlet.
uint32_t triangleCount
 Number of packed triangles referenced by this meshlet.
uint32_t vertexDataOffset
 First vertex element for this meshlet.
uint32_t triangleDataOffset
 First packed triangle element for this meshlet.
uint32_t primitiveIndex
 Primitive or mesh geometry index used for object/material lookup.
uint32_t pipelineIndex
 Pipeline bin used to route the meshlet to the correct material shader.
uint64_t vertexDataAddress
 Device address of the vertex buffer used by this meshlet.
uint64_t triangleDataAddress
 Device address of the packed triangle buffer used by this meshlet.
uint32_t _padding [2] {}
 Padding required by the shader layout.

Detailed Description

GPU-side meshlet descriptor consumed by mesh shaders.

vertexDataAddress and triangleDataAddress are device addresses of the buffers that contain the meshlet's vertex and packed triangle data. Offsets are element offsets into those buffers. The layout matches GLSL UnifiedMeshlet and is 48 bytes.

Definition at line 149 of file RenderData.h.

Member Data Documentation

◆ _padding

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

Padding required by the shader layout.

Definition at line 159 of file RenderData.h.

◆ pipelineIndex

uint32_t Engine::Rendering::GpuBuffers::UnifiedMeshlet::pipelineIndex

Pipeline bin used to route the meshlet to the correct material shader.

Definition at line 156 of file RenderData.h.

◆ primitiveIndex

uint32_t Engine::Rendering::GpuBuffers::UnifiedMeshlet::primitiveIndex

Primitive or mesh geometry index used for object/material lookup.

Definition at line 155 of file RenderData.h.

◆ triangleCount

uint32_t Engine::Rendering::GpuBuffers::UnifiedMeshlet::triangleCount

Number of packed triangles referenced by this meshlet.

Definition at line 152 of file RenderData.h.

◆ triangleDataAddress

uint64_t Engine::Rendering::GpuBuffers::UnifiedMeshlet::triangleDataAddress

Device address of the packed triangle buffer used by this meshlet.

Definition at line 158 of file RenderData.h.

◆ triangleDataOffset

uint32_t Engine::Rendering::GpuBuffers::UnifiedMeshlet::triangleDataOffset

First packed triangle element for this meshlet.

Definition at line 154 of file RenderData.h.

◆ vertexCount

uint32_t Engine::Rendering::GpuBuffers::UnifiedMeshlet::vertexCount

Number of vertices referenced by this meshlet.

Definition at line 151 of file RenderData.h.

◆ vertexDataAddress

uint64_t Engine::Rendering::GpuBuffers::UnifiedMeshlet::vertexDataAddress

Device address of the vertex buffer used by this meshlet.

Definition at line 157 of file RenderData.h.

◆ vertexDataOffset

uint32_t Engine::Rendering::GpuBuffers::UnifiedMeshlet::vertexDataOffset

First vertex element for this meshlet.

Definition at line 153 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