Photon Editor Library
2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
IDynamicSceneResource.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Render/ISceneResource.h
"
4
5
namespace
ph::editor
{
class
RenderThreadUpdateContext; }
6
7
namespace
ph::editor::render
8
{
9
10
enum class
EProcessOrder
11
{
12
PreProcess
= 0,
13
ViewContent
,
14
ViewRender
,
15
PostProcess
,
16
Overlay
17
};
18
19
class
IDynamicSceneResource
:
public
ISceneResource
20
{
21
public
:
22
IDynamicSceneResource
();
23
~IDynamicSceneResource
()
override
;
24
25
virtual
void
update
(
const
RenderThreadUpdateContext
& ctx) = 0;
26
virtual
void
createGHICommands
(
GHIThreadCaller
& caller) = 0;
27
virtual
EProcessOrder
getProcessOrder
()
const
;
28
29
void
setupGHI
(
GHIThreadCaller
& caller)
override
= 0;
30
void
cleanupGHI
(
GHIThreadCaller
& caller)
override
= 0;
31
bool
isDynamic
()
const override
;
32
};
33
34
inline
bool
IDynamicSceneResource::isDynamic
()
const
35
{
36
return
true
;
37
}
38
39
inline
EProcessOrder
IDynamicSceneResource::getProcessOrder
()
const
40
{
41
return
EProcessOrder::ViewContent
;
42
}
43
44
}
// end namespace ph::editor::render
ISceneResource.h
ph::editor::GHIThreadCaller
Thin wrapper for GHI thread interactions from another thread. Mainly to hide unrelated GHI interface ...
Definition
GHIThreadCaller.h:16
ph::editor::RenderThreadUpdateContext
Definition
RenderThreadUpdateContext.h:11
ph::editor::render::IDynamicSceneResource
Definition
IDynamicSceneResource.h:20
ph::editor::render::IDynamicSceneResource::IDynamicSceneResource
IDynamicSceneResource()
ph::editor::render::IDynamicSceneResource::isDynamic
bool isDynamic() const override
Definition
IDynamicSceneResource.h:34
ph::editor::render::IDynamicSceneResource::~IDynamicSceneResource
~IDynamicSceneResource() override
ph::editor::render::IDynamicSceneResource::getProcessOrder
virtual EProcessOrder getProcessOrder() const
Definition
IDynamicSceneResource.h:39
ph::editor::render::IDynamicSceneResource::update
virtual void update(const RenderThreadUpdateContext &ctx)=0
ph::editor::render::IDynamicSceneResource::cleanupGHI
void cleanupGHI(GHIThreadCaller &caller) override=0
ph::editor::render::IDynamicSceneResource::createGHICommands
virtual void createGHICommands(GHIThreadCaller &caller)=0
ph::editor::render::IDynamicSceneResource::setupGHI
void setupGHI(GHIThreadCaller &caller) override=0
ph::editor::render::ISceneResource
Definition
ISceneResource.h:9
ph::editor::render
Definition
DesignerObject.h:19
ph::editor::render::EProcessOrder
EProcessOrder
Definition
IDynamicSceneResource.h:11
ph::editor::render::EProcessOrder::ViewContent
@ ViewContent
ph::editor::render::EProcessOrder::ViewRender
@ ViewRender
ph::editor::render::EProcessOrder::Overlay
@ Overlay
ph::editor::render::EProcessOrder::PostProcess
@ PostProcess
ph::editor::render::EProcessOrder::PreProcess
@ PreProcess
ph::editor
Definition
ph_editor.h:10
Source
Render
IDynamicSceneResource.h
Generated by
1.11.0