CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::ShaderCompiler::Formatting Struct Reference

Formatting descriptor structure for the output shader. More...

#include <CeresEngine/Material/ShaderCompiler/ShaderCompiler.hpp>

Public Attributes

bool alwaysBracedScopes = true
 If true, scopes are always written in braces. By default, true.
 
bool blanks = true
 If true, blank lines are allowed. By default, true.
 
bool compactWrappers = false
 If true, wrapper functions for special intrinsics are written in a compact formatting (i.e.
 
String indent = String(4, ' ')
 Indentation string for code generation. By default, String(4, ' ').
 
bool lineMarks = false
 If true, line marks are allowed. By default, false.
 
bool lineSeparation = true
 If true, auto-formatting of line separation is allowed. By default, true.
 
bool newLineOpenScope = false
 If true, the '{'-braces for an open scope gets its own line.
 

Detailed Description

Formatting descriptor structure for the output shader.

See also
ShaderOutput::formatting

Member Data Documentation

◆ alwaysBracedScopes

bool CeresEngine::ShaderCompiler::Formatting::alwaysBracedScopes = true

If true, scopes are always written in braces. By default, true.

◆ blanks

bool CeresEngine::ShaderCompiler::Formatting::blanks = true

If true, blank lines are allowed. By default, true.

◆ compactWrappers

bool CeresEngine::ShaderCompiler::Formatting::compactWrappers = false

If true, wrapper functions for special intrinsics are written in a compact formatting (i.e.

all in one line). By default, false.

◆ indent

String CeresEngine::ShaderCompiler::Formatting::indent = String(4, ' ')

Indentation string for code generation. By default, String(4, ' ').

◆ lineMarks

bool CeresEngine::ShaderCompiler::Formatting::lineMarks = false

If true, line marks are allowed. By default, false.

◆ lineSeparation

bool CeresEngine::ShaderCompiler::Formatting::lineSeparation = true

If true, auto-formatting of line separation is allowed. By default, true.

◆ newLineOpenScope

bool CeresEngine::ShaderCompiler::Formatting::newLineOpenScope = false

If true, the '{'-braces for an open scope gets its own line.

If false, braces are written like in Java coding conventions. By default, false.


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