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

#include <MotionBlurPreRenderOperator.h>

+ Inheritance diagram for Divide::MotionBlurPreRenderOperator:

Public Member Functions

 MotionBlurPreRenderOperator (GFXDevice &context, PreRenderBatch &parent)
 
 ~MotionBlurPreRenderOperator ()
 
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 parametersChanged () noexcept
 
bool ready () const noexcept override
 
 PROPERTY_RW (U8, maxSamples, 16u)
 
- 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_blurApply = INVALID_HANDLE<ShaderProgram>
 
GFX::BindPipelineCommand _blurApplyPipelineCmd
 

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 41 of file MotionBlurPreRenderOperator.h.

Constructor & Destructor Documentation

◆ MotionBlurPreRenderOperator()

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

Definition at line 20 of file MotionBlurPreRenderOperator.cpp.

◆ ~MotionBlurPreRenderOperator()

Divide::MotionBlurPreRenderOperator::~MotionBlurPreRenderOperator ( )

Definition at line 53 of file MotionBlurPreRenderOperator.cpp.

Member Function Documentation

◆ execute()

bool Divide::MotionBlurPreRenderOperator::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 73 of file MotionBlurPreRenderOperator.cpp.

◆ parametersChanged()

void Divide::MotionBlurPreRenderOperator::parametersChanged ( )
noexcept

Definition at line 68 of file MotionBlurPreRenderOperator.cpp.

◆ PROPERTY_RW()

Divide::MotionBlurPreRenderOperator::PROPERTY_RW ( U8  ,
maxSamples  ,
16u   
)

◆ ready()

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

Reimplemented from Divide::PreRenderOperator.

Definition at line 58 of file MotionBlurPreRenderOperator.cpp.

Member Data Documentation

◆ _blurApply

Handle<ShaderProgram> Divide::MotionBlurPreRenderOperator::_blurApply = INVALID_HANDLE<ShaderProgram>
private

Definition at line 54 of file MotionBlurPreRenderOperator.h.

◆ _blurApplyPipelineCmd

GFX::BindPipelineCommand Divide::MotionBlurPreRenderOperator::_blurApplyPipelineCmd
private

Definition at line 55 of file MotionBlurPreRenderOperator.h.


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