Foundation
Loading...
Searching...
No Matches
Public Attributes | List of all members
Foundation::Rendering::ApplicationInitDesc Struct Reference

Initialization parameters for RenderApplication. More...

#include <Application.hpp>

Public Attributes

size_t deviceIndex {0}
 
String windowTitle {"Application"}
 
RHIExtent2D windowSize {800, 600}
 
bool initOnResize {false}
 Reinitialize the renderer when the window is resized.
 
RendererDesc renderer
 Parameters for the initializing the underlying Renderer.
 

Detailed Description

Initialization parameters for RenderApplication.

Member Data Documentation

◆ deviceIndex

size_t Foundation::Rendering::ApplicationInitDesc::deviceIndex {0}

◆ initOnResize

bool Foundation::Rendering::ApplicationInitDesc::initOnResize {false}

Reinitialize the renderer when the window is resized.

If this is false, only the backbuffer is resized. Otherwise, the entire Renderer is reinitialized, re-creating resources

  • which is useful if you have resources that depend on the backbuffer size.

◆ renderer

RendererDesc Foundation::Rendering::ApplicationInitDesc::renderer
Initial value:
{
.enableAsyncCompute = true,
.enablePresent = true,
.numRenderThreads = std::max(1u, std::thread::hardware_concurrency() - 1)
}

Parameters for the initializing the underlying Renderer.

◆ windowSize

RHIExtent2D Foundation::Rendering::ApplicationInitDesc::windowSize {800, 600}

◆ windowTitle

String Foundation::Rendering::ApplicationInitDesc::windowTitle {"Application"}

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