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

#include <DoFPreRenderOperator.h>

+ Inheritance diagram for Divide::DoFPreRenderOperator:

Public Member Functions

 DoFPreRenderOperator (GFXDevice &context, PreRenderBatch &parent)
 
 ~DoFPreRenderOperator ()
 
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 () noexcept
 
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
 

Private Attributes

Handle< ShaderProgram_dofShader = INVALID_HANDLE<ShaderProgram>
 
Pipeline_pipeline = nullptr
 
PushConstantsStruct _constants {}
 

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 DoFPreRenderOperator.h.

Constructor & Destructor Documentation

◆ DoFPreRenderOperator()

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

Definition at line 22 of file DoFPreRenderOperator.cpp.

◆ ~DoFPreRenderOperator()

Divide::DoFPreRenderOperator::~DoFPreRenderOperator ( )

Definition at line 94 of file DoFPreRenderOperator.cpp.

Member Function Documentation

◆ execute()

bool Divide::DoFPreRenderOperator::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 130 of file DoFPreRenderOperator.cpp.

◆ parametersChanged()

void Divide::DoFPreRenderOperator::parametersChanged ( )
noexcept

Definition at line 104 of file DoFPreRenderOperator.cpp.

◆ ready()

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

Reimplemented from Divide::PreRenderOperator.

Definition at line 99 of file DoFPreRenderOperator.cpp.

◆ reshape()

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

Reimplemented from Divide::PreRenderOperator.

Definition at line 124 of file DoFPreRenderOperator.cpp.

Member Data Documentation

◆ _constants

PushConstantsStruct Divide::DoFPreRenderOperator::_constants {}
private

Definition at line 57 of file DoFPreRenderOperator.h.

◆ _dofShader

Handle<ShaderProgram> Divide::DoFPreRenderOperator::_dofShader = INVALID_HANDLE<ShaderProgram>
private

Definition at line 55 of file DoFPreRenderOperator.h.

◆ _pipeline

Pipeline* Divide::DoFPreRenderOperator::_pipeline = nullptr
private

Definition at line 56 of file DoFPreRenderOperator.h.


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