Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
NullMemoryManager.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace ph::editor::ghi
6{
7
9{
10public:
11 GraphicsMemoryBlock* allocHostBlock(uint32 numFramesToLive) override
12 {
13 return nullptr;
14 }
15
17 uint32 numFramesToLive,
18 std::size_t blockSize,
19 std::size_t blockAlignment) override
20 {
21 return nullptr;
22 }
23
24 void onGHILoad() override
25 {}
26
27 void onGHIUnload() override
28 {}
29
30 void beginFrameUpdate(const GHIThreadUpdateContext& ctx) override
31 {}
32
33 void endFrameUpdate(const GHIThreadUpdateContext& ctx) override
34 {}
35};
36
37}// end namespace ph::editor::ghi
Definition GHIThreadUpdateContext.h:11
Definition GraphicsMemoryBlock.h:13
Manages memory for graphics.
Definition GraphicsMemoryManager.h:26
Definition NullMemoryManager.h:9
GraphicsMemoryBlock * allocHostBlock(uint32 numFramesToLive) override
Definition NullMemoryManager.h:11
void onGHILoad() override
Called by GHI thread after GHI is loaded.
Definition NullMemoryManager.h:24
GraphicsMemoryBlock * allocCustomHostBlock(uint32 numFramesToLive, std::size_t blockSize, std::size_t blockAlignment) override
Definition NullMemoryManager.h:16
void endFrameUpdate(const GHIThreadUpdateContext &ctx) override
Called by GHI thread when a frame ends.
Definition NullMemoryManager.h:33
void beginFrameUpdate(const GHIThreadUpdateContext &ctx) override
Called by GHI thread when a frame begins.
Definition NullMemoryManager.h:30
void onGHIUnload() override
Called by GHI thread before GHI is unloaded.
Definition NullMemoryManager.h:27
Definition PlatformDisplay.h:13