Nebula
Loading...
Searching...
No Matches
PostEffects Namespace Reference

Detailed Description

Bloom post effect.

SSR post effect.

SSAO post effect.

Histogram calculates a HDR luminance histogram over the entire image to account for light intensity and color saturation.

Handles callbacks for downscaling passes.

Full-resolution circle of confusion, half-resolution bokeh gather, before tonemap.

DofMask runs on the compute queue and writes the context-owned BokehMask from Aperture. DofSetup, DofGather, and DofComposite run on the graphics queue. DofComposite writes the mix into LightBuffer. Color Downsample and bloom run on that. finalize.gpul adds bloom.

(C) 2021 Individual contributors, see AUTHORS file

Classes

struct  [struct].bloomState
struct  [struct].dofState
struct  [struct].histogramState
struct  [struct].ssaoState
struct  [struct].ssrState
struct  [struct].state
class  BloomContext
class  DofContext
class  DownsamplingContext
class  HistogramContext
class  SSAOContext
class  SSRContext
struct  ViewData

Functions

 __ImplementPluginContext (PostEffects::BloomContext)
static void WriteDirtUniform (const CoreGraphics::TextureId texture)
 Dirt.x is 0 for the white placeholder.
 __ImplementPluginContext (PostEffects::DofContext)
static void WriteDofSizes ()
 ColorSize is LightBuffer and HalfColor, the full-resolution circle of confusion.
static void BindDofResources ()
 ColorSource is LightBuffer.
 __ImplementPluginContext (DownsamplingContext)
uint DispatchSize (SizeT numPixels)
void SetupMipChainResources (CoreGraphics::TextureId tex, Util::FixedArray< CoreGraphics::TextureViewId > &views, CoreGraphics::ResourceTableId table, const Util::String &name, bool depth, IndexT input, IndexT slot)
 __ImplementPluginContext (PostEffects::HistogramContext)
 __ImplementPluginContext (PostEffects::SSAOContext)
 __ImplementPluginContext (PostEffects::SSRContext)

Variables

struct  bloomState
struct  dofState
struct  state
struct  histogramState
struct  ssaoState
struct  ssrState

Function Documentation

◆ __ImplementPluginContext() [1/6]

PostEffects::__ImplementPluginContext ( DownsamplingContext )

◆ __ImplementPluginContext() [2/6]

PostEffects::__ImplementPluginContext ( PostEffects::BloomContext )

◆ __ImplementPluginContext() [3/6]

PostEffects::__ImplementPluginContext ( PostEffects::DofContext )

◆ __ImplementPluginContext() [4/6]

PostEffects::__ImplementPluginContext ( PostEffects::HistogramContext )

◆ __ImplementPluginContext() [5/6]

PostEffects::__ImplementPluginContext ( PostEffects::SSAOContext )

◆ __ImplementPluginContext() [6/6]

PostEffects::__ImplementPluginContext ( PostEffects::SSRContext )

◆ BindDofResources()

void PostEffects::BindDofResources ( )
static

ColorSource is LightBuffer.

BokehOutput is BokehBuffer.

◆ DispatchSize()

uint PostEffects::DispatchSize ( SizeT numPixels)

◆ SetupMipChainResources()

void PostEffects::SetupMipChainResources ( CoreGraphics::TextureId tex,
Util::FixedArray< CoreGraphics::TextureViewId > & views,
CoreGraphics::ResourceTableId table,
const Util::String & name,
bool depth,
IndexT input,
IndexT slot )

◆ WriteDirtUniform()

void PostEffects::WriteDirtUniform ( const CoreGraphics::TextureId texture)
static

Dirt.x is 0 for the white placeholder.

Dirt.yz is the reciprocal of DirtMask mip 0.

◆ WriteDofSizes()

void PostEffects::WriteDofSizes ( )
static

ColorSize is LightBuffer and HalfColor, the full-resolution circle of confusion.

HalfSize is BokehBuffer, the half-resolution gather.

Variable Documentation

◆ bloomState

struct PostEffects::[struct].bloomState PostEffects::bloomState

◆ dofState

struct PostEffects::[struct].dofState PostEffects::dofState

◆ histogramState

struct PostEffects::[struct].histogramState PostEffects::histogramState

◆ ssaoState

struct PostEffects::[struct].ssaoState PostEffects::ssaoState

◆ ssrState

struct PostEffects::[struct].ssrState PostEffects::ssrState

◆ state

struct PostEffects::[struct].state PostEffects::state