evan 2026.1.4
Evan
Loading...
Searching...
No Matches
evan::RenderSettings Struct Reference

Application-facing rendering configuration. More...

#include <headers/evan/RenderSettings.hpp>

Public Attributes

VkSampleCountFlagBits msaaSamples = VK_SAMPLE_COUNT_1_BIT
 Multisample anti-aliasing sample count.
 
OpaqueSortMode opaqueSort = OpaqueSortMode::FrontToBack
 Ordering strategy for the opaque draws of a frame.
 

Detailed Description

Application-facing rendering configuration.

Passed to the Engine, which applies it before the swapchain and its render pass are created: the sample count is baked into the render pass and the framebuffers, so it is a construction-time setting.

Definition at line 231 of file RenderSettings.hpp.

Member Data Documentation

◆ msaaSamples

VkSampleCountFlagBits evan::RenderSettings::msaaSamples = VK_SAMPLE_COUNT_1_BIT

Multisample anti-aliasing sample count.

Defaults to a single sample. MSAA multiplies color and depth bandwidth by the sample count and forces a resolve, which every scene pays whether or not it benefits from the extra edge quality. Raise it to VK_SAMPLE_COUNT_2_BIT or VK_SAMPLE_COUNT_4_BIT when it is worth the bandwidth. The EVAN_MSAA environment variable overrides this value, which makes A/B measurements possible without a rebuild.

Definition at line 243 of file RenderSettings.hpp.

◆ opaqueSort

OpaqueSortMode evan::RenderSettings::opaqueSort = OpaqueSortMode::FrontToBack

Ordering strategy for the opaque draws of a frame.

Definition at line 248 of file RenderSettings.hpp.


The documentation for this struct was generated from the following file: