API Documentation
Static Public Member Functions | List of all members
nkAstraeus::FilmGrainEffectUtils Class Referencefinal

Utilities that can help when using an FilmGrainEffect. More...

Static Public Member Functions

static void prepareBlendStateForGrainBlending (nkGraphics::BlendState *blendState)
 

Detailed Description

Utilities that can help when using an FilmGrainEffect.

Member Function Documentation

◆ prepareBlendStateForGrainBlending()

static void nkAstraeus::FilmGrainEffectUtils::prepareBlendStateForGrainBlending ( nkGraphics::BlendState blendState)
static

Allows to setup a blend state to use with an effect for which the FilmGrainEffect::setBlendGrainInTarget() has been set to true. This blend state can be used by using nkGraphics::PostProcessPass::setBlendState() on the pass using the effect's shader.

Parameters
blendStateThe state to setup for such a use.
Remarks
The state won't be loaded. It is the responsibility of the client code to reload it. This way, it is possible to do some tweaking before the reload operation occurs, if required.

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