Divide Framework
0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
MotionBlurPreRenderOperator.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2018 DIVIDE-Studio
3
Copyright (c) 2009 Ionut Cava
4
5
This file is part of DIVIDE Framework.
6
7
Permission is hereby granted, free of charge, to any person obtaining a copy
8
of this software
9
and associated documentation files (the "Software"), to deal in the Software
10
without restriction,
11
including without limitation the rights to use, copy, modify, merge, publish,
12
distribute, sublicense,
13
and/or sell copies of the Software, and to permit persons to whom the
14
Software is furnished to do so,
15
subject to the following conditions:
16
17
The above copyright notice and this permission notice shall be included in
18
all copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
IMPLIED,
22
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23
PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25
DAMAGES OR OTHER LIABILITY,
26
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
27
IN CONNECTION WITH THE SOFTWARE
28
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30
*/
31
32
#pragma once
33
#ifndef DVD_MOTION_BLUR_PRE_RENDER_OPERATOR_H_
34
#define DVD_MOTION_BLUR_PRE_RENDER_OPERATOR_H_
35
36
#include "
Rendering/PostFX/Headers/PreRenderOperator.h
"
37
#include "
Platform/Video/Headers/Commands.h
"
38
39
namespace
Divide
{
40
41
class
MotionBlurPreRenderOperator
final :
public
PreRenderOperator
{
42
public
:
43
explicit
MotionBlurPreRenderOperator
(
GFXDevice
& context,
PreRenderBatch
&
parent
);
44
~MotionBlurPreRenderOperator
();
45
46
[[nodiscard]]
bool
execute
(
PlayerIndex
idx,
const
CameraSnapshot
& cameraSnapshot,
const
RenderTargetHandle
& input,
const
RenderTargetHandle
& output,
GFX::CommandBuffer
& bufferInOut)
override
;
47
48
void
parametersChanged
()
noexcept
;
49
50
[[nodiscard]]
bool
ready
()
const
noexcept
override
;
51
52
PROPERTY_RW
(
U8
, maxSamples, 16u);
53
private
:
54
Handle<ShaderProgram>
_blurApply
= INVALID_HANDLE<ShaderProgram>;
55
GFX::BindPipelineCommand
_blurApplyPipelineCmd
;
56
};
57
58
}
// namespace Divide
59
60
#endif
//DVD_MOTION_BLUR_PRE_RENDER_OPERATOR_H_
Commands.h
PreRenderOperator.h
Divide::GFX::CommandBuffer
Definition:
CommandBuffer.h:110
Divide::GFXDevice
Rough around the edges Adapter pattern abstracting the actual rendering API and access to the GPU.
Definition:
GFXDevice.h:215
Divide::MotionBlurPreRenderOperator
Definition:
MotionBlurPreRenderOperator.h:41
Divide::MotionBlurPreRenderOperator::_blurApply
Handle< ShaderProgram > _blurApply
Definition:
MotionBlurPreRenderOperator.h:54
Divide::MotionBlurPreRenderOperator::~MotionBlurPreRenderOperator
~MotionBlurPreRenderOperator()
Definition:
MotionBlurPreRenderOperator.cpp:53
Divide::MotionBlurPreRenderOperator::ready
bool ready() const noexcept override
Definition:
MotionBlurPreRenderOperator.cpp:58
Divide::MotionBlurPreRenderOperator::PROPERTY_RW
PROPERTY_RW(U8, maxSamples, 16u)
Divide::MotionBlurPreRenderOperator::_blurApplyPipelineCmd
GFX::BindPipelineCommand _blurApplyPipelineCmd
Definition:
MotionBlurPreRenderOperator.h:55
Divide::MotionBlurPreRenderOperator::parametersChanged
void parametersChanged() noexcept
Definition:
MotionBlurPreRenderOperator.cpp:68
Divide::MotionBlurPreRenderOperator::execute
bool execute(PlayerIndex idx, const CameraSnapshot &cameraSnapshot, const RenderTargetHandle &input, const RenderTargetHandle &output, GFX::CommandBuffer &bufferInOut) override
Return true if we rendered into "output".
Definition:
MotionBlurPreRenderOperator.cpp:73
Divide::PreRenderBatch
Definition:
PreRenderBatch.h:83
Divide::PreRenderOperator
Definition:
PreRenderOperator.h:53
Divide
Handle console commands that start with a forward slash.
Definition:
AIProcessor.cpp:7
Divide::U8
uint8_t U8
Definition:
PlatformDataTypes.h:44
Divide::parent
Project & parent
Definition:
DefaultScene.h:41
Divide::PlayerIndex
U8 PlayerIndex
Definition:
PlatformDefines.h:153
Divide::CameraSnapshot
Definition:
CameraSnapshot.h:39
Divide::GFX::BindPipelineCommand
Definition:
Commands.inl:71
Divide::Handle
Definition:
PlatformDefines.h:519
Divide::RenderTargetHandle
Definition:
RenderTarget.h:45
Source
Rendering
PostFX
CustomOperators
Headers
MotionBlurPreRenderOperator.h
Generated on Fri May 17 2024 16:59:56 for Divide Framework by
1.9.6