Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::SSRPreRenderOperator Class Referencefinal

#include <SSRPreRenderOperator.h>

+ Inheritance diagram for Divide::SSRPreRenderOperator:

Public Member Functions

 SSRPreRenderOperator (GFXDevice &context, PreRenderBatch &parent)
 
 ~SSRPreRenderOperator ()
 
bool execute (PlayerIndex idx, const CameraSnapshot &cameraSnapshot, const RenderTargetHandle &input, const RenderTargetHandle &output, GFX::CommandBuffer &bufferInOut) override
 Return true if we rendered into "output".
 
void reshape (U16 width, U16 height) override
 
void parametersChanged ()
 
bool ready () const noexcept override
 
- Public Member Functions inherited from Divide::PreRenderOperator
 PreRenderOperator (GFXDevice &context, PreRenderBatch &parent, FilterType operatorType)
 
virtual ~PreRenderOperator ()=default
 
virtual bool execute (PlayerIndex idx, const CameraSnapshot &cameraSnapshot, const RenderTargetHandle &input, const RenderTargetHandle &output, GFX::CommandBuffer &bufferInOut)
 Return true if we rendered into "output".
 
virtual void reshape (U16 width, U16 height)
 
virtual void prepare (PlayerIndex idx, GFX::CommandBuffer &bufferInOut)
 
FilterType operatorType () const noexcept
 
virtual void onToggle (bool state)
 
virtual bool ready () const noexcept
 

Protected Member Functions

void onToggle (const bool state) override
 
void prepare (PlayerIndex idx, GFX::CommandBuffer &bufferInOut) override
 

Private Attributes

Handle< ShaderProgram_ssrShader = INVALID_HANDLE<ShaderProgram>
 
GFX::BindPipelineCommand _pipelineCmd
 
UniformData _uniforms
 
mat4< F32_projToPixelBasis
 
vec2< F32_cachedZPlanes = VECTOR2_UNIT
 
bool _constantsDirty = true
 
bool _stateChanged = false
 

Additional Inherited Members

- Protected Attributes inherited from Divide::PreRenderOperator
GFXDevice_context
 
PreRenderBatch_parent
 
RTDrawDescriptor _screenOnlyDraw {}
 
FilterType _operatorType = FilterType::FILTER_COUNT
 
bool _enabled = true
 

Detailed Description

Definition at line 42 of file SSRPreRenderOperator.h.

Constructor & Destructor Documentation

◆ SSRPreRenderOperator()

Divide::SSRPreRenderOperator::SSRPreRenderOperator ( GFXDevice context,
PreRenderBatch parent 
)
explicit

Definition at line 19 of file SSRPreRenderOperator.cpp.

◆ ~SSRPreRenderOperator()

Divide::SSRPreRenderOperator::~SSRPreRenderOperator ( )

Definition at line 55 of file SSRPreRenderOperator.cpp.

Member Function Documentation

◆ execute()

bool Divide::SSRPreRenderOperator::execute ( PlayerIndex  idx,
const CameraSnapshot cameraSnapshot,
const RenderTargetHandle input,
const RenderTargetHandle output,
GFX::CommandBuffer bufferInOut 
)
overridevirtual

Return true if we rendered into "output".

Reimplemented from Divide::PreRenderOperator.

Definition at line 119 of file SSRPreRenderOperator.cpp.

◆ onToggle()

void Divide::SSRPreRenderOperator::onToggle ( const bool  state)
inlineoverrideprotectedvirtual

Reimplemented from Divide::PreRenderOperator.

Definition at line 55 of file SSRPreRenderOperator.h.

◆ parametersChanged()

void Divide::SSRPreRenderOperator::parametersChanged ( )

Definition at line 70 of file SSRPreRenderOperator.cpp.

◆ prepare()

void Divide::SSRPreRenderOperator::prepare ( PlayerIndex  idx,
GFX::CommandBuffer bufferInOut 
)
overrideprotectedvirtual

Reimplemented from Divide::PreRenderOperator.

Definition at line 100 of file SSRPreRenderOperator.cpp.

◆ ready()

bool Divide::SSRPreRenderOperator::ready ( ) const
overridevirtualnoexcept

Reimplemented from Divide::PreRenderOperator.

Definition at line 60 of file SSRPreRenderOperator.cpp.

◆ reshape()

void Divide::SSRPreRenderOperator::reshape ( U16  width,
U16  height 
)
overridevirtual

Reimplemented from Divide::PreRenderOperator.

Definition at line 87 of file SSRPreRenderOperator.cpp.

Member Data Documentation

◆ _cachedZPlanes

vec2<F32> Divide::SSRPreRenderOperator::_cachedZPlanes = VECTOR2_UNIT
private

Definition at line 63 of file SSRPreRenderOperator.h.

◆ _constantsDirty

bool Divide::SSRPreRenderOperator::_constantsDirty = true
private

Definition at line 64 of file SSRPreRenderOperator.h.

◆ _pipelineCmd

GFX::BindPipelineCommand Divide::SSRPreRenderOperator::_pipelineCmd
private

Definition at line 60 of file SSRPreRenderOperator.h.

◆ _projToPixelBasis

mat4<F32> Divide::SSRPreRenderOperator::_projToPixelBasis
private

Definition at line 62 of file SSRPreRenderOperator.h.

◆ _ssrShader

Handle<ShaderProgram> Divide::SSRPreRenderOperator::_ssrShader = INVALID_HANDLE<ShaderProgram>
private

Definition at line 59 of file SSRPreRenderOperator.h.

◆ _stateChanged

bool Divide::SSRPreRenderOperator::_stateChanged = false
private

Definition at line 65 of file SSRPreRenderOperator.h.

◆ _uniforms

UniformData Divide::SSRPreRenderOperator::_uniforms
private

Definition at line 61 of file SSRPreRenderOperator.h.


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