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

LOD configuration UBO for GPU shader selection. More...

#include <RenderData.h>

Public Attributes

float errorThresholdPixels
 Target pixel error (default 1.0)
float cameraProj11
 projection[1][1] = cot(fov/2)
float cameraNear
 Positive near plane distance.
uint32_t ditherEnabled
 1 = dither transitions, 0 = hard cut
glm::vec4 cameraPosition
 World-space camera position.
glm::vec2 screenSize
 Render target dimensions.
glm::vec2 _padding

Detailed Description

LOD configuration UBO for GPU shader selection.

Layout matches GLSL std140 LodConfig uniform (48 bytes).

Definition at line 472 of file RenderData.h.

Member Data Documentation

◆ _padding

glm::vec2 Engine::Rendering::GpuBuffers::LodConfigUBO::_padding

Definition at line 480 of file RenderData.h.

◆ cameraNear

float Engine::Rendering::GpuBuffers::LodConfigUBO::cameraNear

Positive near plane distance.

Definition at line 476 of file RenderData.h.

◆ cameraPosition

glm::vec4 Engine::Rendering::GpuBuffers::LodConfigUBO::cameraPosition

World-space camera position.

Definition at line 478 of file RenderData.h.

◆ cameraProj11

float Engine::Rendering::GpuBuffers::LodConfigUBO::cameraProj11

projection[1][1] = cot(fov/2)

Definition at line 475 of file RenderData.h.

◆ ditherEnabled

uint32_t Engine::Rendering::GpuBuffers::LodConfigUBO::ditherEnabled

1 = dither transitions, 0 = hard cut

Definition at line 477 of file RenderData.h.

◆ errorThresholdPixels

float Engine::Rendering::GpuBuffers::LodConfigUBO::errorThresholdPixels

Target pixel error (default 1.0)

Definition at line 474 of file RenderData.h.

◆ screenSize

glm::vec2 Engine::Rendering::GpuBuffers::LodConfigUBO::screenSize

Render target dimensions.

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