Nameless Engine
Loading...
Searching...
No Matches
ne::EngineShaderConstantMacros::ForwardPlus Struct Reference

#include <EngineShaderConstantMacros.hpp>

Static Public Member Functions

static std::pair< std::string, std::string > getLightGridTileSizeMacro ()
 
static std::pair< std::string, std::string > getAveragePointLightNumPerTileMacro ()
 
static std::pair< std::string, std::string > getAverageSpotLightNumPerTileMacro ()
 

Detailed Description

Groups macros used in Forward+ light culling process.

Member Function Documentation

◆ getAveragePointLightNumPerTileMacro()

static std::pair< std::string, std::string > ne::EngineShaderConstantMacros::ForwardPlus::getAveragePointLightNumPerTileMacro ( )
inlinestatic

Returns a macro that defines how much point lights are expected to be on average in a light grid tile for opaque or transparent geometry.

Remarks
Determines the size for light lists and light grid.
Returns
Macro name and macro value.

◆ getAverageSpotLightNumPerTileMacro()

static std::pair< std::string, std::string > ne::EngineShaderConstantMacros::ForwardPlus::getAverageSpotLightNumPerTileMacro ( )
inlinestatic

Returns a macro that defines how much spotlights are expected to be on average in a light grid tile for opaque or transparent geometry.

Remarks
Determines the size for light lists and light grid.
Returns
Macro name and macro value.

◆ getLightGridTileSizeMacro()

static std::pair< std::string, std::string > ne::EngineShaderConstantMacros::ForwardPlus::getLightGridTileSizeMacro ( )
inlinestatic

Returns a macro that defines how much threads should be executed in the X and the Y dimensions for compute shader that calculates frustums for light grid tiles.

Remarks
This macro also defines how much pixels there are in one grid tile.
Returns
Macro name and macro value.

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