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

#include <PreRenderOperator.h>

+ Inheritance diagram for Divide::PreRenderOperator:

Public Member Functions

 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 Attributes

GFXDevice_context
 
PreRenderBatch_parent
 
RTDrawDescriptor _screenOnlyDraw {}
 
FilterType _operatorType = FilterType::FILTER_COUNT
 
bool _enabled = true
 

Detailed Description

It's called a prerender operator because it operates on the buffer before "rendering" to the screen Technically, it's a post render operation

Definition at line 53 of file PreRenderOperator.h.

Constructor & Destructor Documentation

◆ PreRenderOperator()

Divide::PreRenderOperator::PreRenderOperator ( GFXDevice context,
PreRenderBatch parent,
FilterType  operatorType 
)

The RenderStage is used to inform the GFXDevice of what we are currently doing to set up appropriate states The target is the full screen quad to which we want to apply our operation to generate the result

Definition at line 9 of file PreRenderOperator.cpp.

◆ ~PreRenderOperator()

virtual Divide::PreRenderOperator::~PreRenderOperator ( )
virtualdefault

Member Function Documentation

◆ execute()

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

◆ onToggle()

void Divide::PreRenderOperator::onToggle ( bool  state)
virtual

Reimplemented in Divide::SSAOPreRenderOperator, and Divide::SSRPreRenderOperator.

Definition at line 31 of file PreRenderOperator.cpp.

◆ operatorType()

FilterType Divide::PreRenderOperator::operatorType ( ) const
inlinenoexcept

Definition at line 69 of file PreRenderOperator.h.

◆ prepare()

void Divide::PreRenderOperator::prepare ( PlayerIndex  idx,
GFX::CommandBuffer bufferInOut 
)
virtual

Reimplemented in Divide::SSAOPreRenderOperator, and Divide::SSRPreRenderOperator.

Definition at line 23 of file PreRenderOperator.cpp.

◆ ready()

virtual bool Divide::PreRenderOperator::ready ( ) const
inlinevirtualnoexcept

◆ reshape()

void Divide::PreRenderOperator::reshape ( U16  width,
U16  height 
)
virtual

Member Data Documentation

◆ _context

GFXDevice& Divide::PreRenderOperator::_context
protected

Definition at line 76 of file PreRenderOperator.h.

◆ _enabled

bool Divide::PreRenderOperator::_enabled = true
protected

Definition at line 81 of file PreRenderOperator.h.

◆ _operatorType

FilterType Divide::PreRenderOperator::_operatorType = FilterType::FILTER_COUNT
protected

Definition at line 80 of file PreRenderOperator.h.

◆ _parent

PreRenderBatch& Divide::PreRenderOperator::_parent
protected

Definition at line 78 of file PreRenderOperator.h.

◆ _screenOnlyDraw

RTDrawDescriptor Divide::PreRenderOperator::_screenOnlyDraw {}
protected

Definition at line 79 of file PreRenderOperator.h.


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