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
4
5namespace ph::editor { class RenderThreadUpdateContext; }
6
7namespace ph::editor::render
8{
9
10enum class EProcessOrder
11{
12 PreProcess = 0,
17};
18
20{
21public:
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
35{
36 return true;
37}
38
43
44}// end namespace ph::editor::render
Thin wrapper for GHI thread interactions from another thread. Mainly to hide unrelated GHI interface ...
Definition GHIThreadCaller.h:16
Definition RenderThreadUpdateContext.h:11
Definition IDynamicSceneResource.h:20
bool isDynamic() const override
Definition IDynamicSceneResource.h:34
virtual EProcessOrder getProcessOrder() const
Definition IDynamicSceneResource.h:39
virtual void update(const RenderThreadUpdateContext &ctx)=0
void cleanupGHI(GHIThreadCaller &caller) override=0
virtual void createGHICommands(GHIThreadCaller &caller)=0
void setupGHI(GHIThreadCaller &caller) override=0
Definition ISceneResource.h:9
Definition DesignerObject.h:19
EProcessOrder
Definition IDynamicSceneResource.h:11
Definition ph_editor.h:10