3#include <Common/primitive_type.h>
8namespace ph::editor {
class GHIThreadUpdateContext; }
13class GraphicsMemoryBlock;
49 uint32 numFramesToLive,
50 std::size_t blockSize,
51 std::size_t blockAlignment) = 0;
81 return numRenderFramesToLive + 1;
Definition GHIThreadUpdateContext.h:11
Graphics memory allocation helper. The arena is allocating lazily, i.e., constructing and copying an ...
Definition GraphicsArena.h:20
Definition GraphicsMemoryBlock.h:13
Manages memory for graphics.
Definition GraphicsMemoryManager.h:26
virtual void beginFrameUpdate(const GHIThreadUpdateContext &ctx)=0
Called by GHI thread when a frame begins.
virtual void onGHILoad()=0
Called by GHI thread after GHI is loaded.
virtual void endFrameUpdate(const GHIThreadUpdateContext &ctx)=0
Called by GHI thread when a frame ends.
virtual GraphicsMemoryBlock * allocHostBlock(uint32 numFramesToLive)=0
static uint32 equivalentRenderFrameLifetime(uint32 numRenderFramesToLive)
Definition GraphicsMemoryManager.h:74
GraphicsArena newRenderProducerHostArena()
Definition GraphicsMemoryManager.cpp:14
virtual ~GraphicsMemoryManager()
GraphicsArena newHostArena()
Definition GraphicsMemoryManager.cpp:9
virtual GraphicsMemoryBlock * allocCustomHostBlock(uint32 numFramesToLive, std::size_t blockSize, std::size_t blockAlignment)=0
virtual void onGHIUnload()=0
Called by GHI thread before GHI is unloaded.
Definition PlatformDisplay.h:13
Definition ph_editor.h:10