"L. Spiro Engine"
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

lsg::CPostProcessorBase Class Reference

The base class for the post processor. More...

#include <LSGPostProcessorBase.h>

List of all members.

Public Member Functions

LSBOOL LSE_CALL ActivateHdrRenderTarget ()
LSVOID LSE_CALL Present ()
LSVOID LSE_CALL Tick (LSUINT64 _ui64Time)
LSE_INLINE CColorRenderTarget
&LSE_CALL 
GetDepthColorCopy ()
LSE_INLINE
CDepthStencilRenderTarget
&LSE_CALL 
GetDepthStencilTarget ()

Protected Member Functions

LSBOOL LSE_CALL Init ()

Protected Attributes

CColorRenderTarget m_crtHdrColor
CDepthStencilRenderTarget m_dsrtHdrDepth
CColorRenderTarget m_crtHdrDepthColorVersion
CColorRenderTarget m_crtHdrNormals
CShader m_sBlitShader
CPostProcessLuminance m_pplLuminance
CPostProcessBrightPass m_ppbpBright
CPostProcessHorBlur m_pphbHorBlur
CPostProcessVertBlur m_ppvbVertBlur
LSUINT64 m_ui64Time

Static Protected Attributes

static CShaderm_psCombiner
static CCriticalSection m_csCrit
static LSUINT32 m_ui32RefCount
static CShaderBase::LSG_HANDLE m_hExposure
static CShaderBase::LSG_HANDLE m_hGaussianScalar
static CShaderBase::LSG_HANDLE m_hInvBloomW
static CShaderBase::LSG_HANDLE m_hInvBloomH

Detailed Description

The base class for the post processor.

Class CPostProcessorBase Description: The base class for the post processor.


Member Function Documentation

LSBOOL LSE_CALL lsg::CPostProcessorBase::ActivateHdrRenderTarget ( )

Activates the color render target in preparation for HDR rendering.

Returns:
Returns true if the HDR render target was activated.
LSE_INLINE CColorRenderTarget &LSE_CALL lsg::CPostProcessorBase::GetDepthColorCopy ( )

Gets the depth copy texture.

Returns:
Returns the depth copy texture.
LSE_INLINE CDepthStencilRenderTarget &LSE_CALL lsg::CPostProcessorBase::GetDepthStencilTarget ( )

Gets the depth texture.

Returns:
Returns the depth texture.
LSBOOL LSE_CALL lsg::CPostProcessorBase::Init ( ) [protected]

Initializes the shaders and render targets.

Returns:
Returns true if the shaders and render targets were initialized.
LSVOID LSE_CALL lsg::CPostProcessorBase::Present ( )

Blits from the post-processing buffer to the main screen buffer.

LSVOID LSE_CALL lsg::CPostProcessorBase::Tick ( LSUINT64  _ui64Time)

Advances this shader system and all systems it uses by the given number of microseconds.

Parameters:
_ui64TimeThe number of microseconds by which to advance the shader system.

Member Data Documentation

The HDR color render target.

If reading from the depth buffer is possible, this is not used. Otherwise this is a readable copy of the depth buffer.

A copy of the normals in the scene.

CCriticalSection lsg::CPostProcessorBase::m_csCrit [static, protected]

Critical section for thread safety.

The HDR depth surface.

Handle to the exposure value.

Handle to the gaussian scalar.

Handle to the inverse bloom height.

Handle to the inverse bloom width.

The bright pass handler.

The horizontal blur pass.

The luminance handler.

The vertical blur pass.

The shader for the blue.

The shader used to blit the result of post-processing to the main screen buffer.

LSUINT32 lsg::CPostProcessorBase::m_ui32RefCount [static, protected]

Reference count on the shaders.

Microseconds of advancement.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator