Vulkan Schnee 0.0.1 (22840dc8)
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
 Padding required by the shader layout.

Detailed Description

LOD configuration UBO for GPU shader selection.

Layout matches GLSL std140 LodConfig and is 48 bytes.

Definition at line 548 of file RenderData.h.

Member Data Documentation

◆ _padding

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

Padding required by the shader layout.

Definition at line 556 of file RenderData.h.

◆ cameraNear

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

Positive near plane distance.

Definition at line 552 of file RenderData.h.

◆ cameraPosition

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

World-space camera position.

Definition at line 554 of file RenderData.h.

◆ cameraProj11

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

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

Definition at line 551 of file RenderData.h.

◆ ditherEnabled

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

1 = dither transitions, 0 = hard cut

Definition at line 553 of file RenderData.h.

◆ errorThresholdPixels

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

Target pixel error (default 1.0)

Definition at line 550 of file RenderData.h.

◆ screenSize

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

Render target dimensions.

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