![]() |
Divide Framework 0.1
A free and open-source 3D Framework under heavy development
|
#include <PreRenderOperator.h>
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 |
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.
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.
|
virtualdefault |
|
virtual |
Return true if we rendered into "output".
Reimplemented in Divide::BloomPreRenderOperator, Divide::DoFPreRenderOperator, Divide::MotionBlurPreRenderOperator, Divide::PostAAPreRenderOperator, Divide::SSAOPreRenderOperator, and Divide::SSRPreRenderOperator.
Definition at line 18 of file PreRenderOperator.cpp.
|
virtual |
Reimplemented in Divide::SSAOPreRenderOperator, and Divide::SSRPreRenderOperator.
Definition at line 31 of file PreRenderOperator.cpp.
|
inlinenoexcept |
Definition at line 69 of file PreRenderOperator.h.
|
virtual |
Reimplemented in Divide::SSAOPreRenderOperator, and Divide::SSRPreRenderOperator.
Definition at line 23 of file PreRenderOperator.cpp.
|
inlinevirtualnoexcept |
Reimplemented in Divide::BloomPreRenderOperator, Divide::DoFPreRenderOperator, Divide::MotionBlurPreRenderOperator, Divide::PostAAPreRenderOperator, Divide::SSAOPreRenderOperator, and Divide::SSRPreRenderOperator.
Definition at line 73 of file PreRenderOperator.h.
Reimplemented in Divide::BloomPreRenderOperator, Divide::DoFPreRenderOperator, Divide::PostAAPreRenderOperator, Divide::SSAOPreRenderOperator, and Divide::SSRPreRenderOperator.
Definition at line 27 of file PreRenderOperator.cpp.
|
protected |
Definition at line 76 of file PreRenderOperator.h.
|
protected |
Definition at line 81 of file PreRenderOperator.h.
|
protected |
Definition at line 80 of file PreRenderOperator.h.
|
protected |
Definition at line 78 of file PreRenderOperator.h.
|
protected |
Definition at line 79 of file PreRenderOperator.h.