ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::TargetPool Class Reference

Shared, bucket-sized render-target pool owned by UIContext (§4.9 Step c). More...

#include <UIContext.hpp>

Public Member Functions

TargetHandle acquire (IRenderer &r, int w, int h, RenderStats *stats=nullptr)
void release (TargetHandle t)
void trim (IRenderer &r, RenderStats *stats=nullptr, int graceFrames=120)
void clear (IRenderer &r, RenderStats *stats=nullptr)
size_t liveCount () const
uint64_t generation () const
 Monotonic generation counter incremented whenever clear() destroys all targets.
uint64_t frameIndex () const
 Current frame counter advanced once per trim() call.

Static Public Member Functions

static int bucketDim (int v)

Static Public Attributes

static constexpr int BUCKET_SIZE = 64
static constexpr int MAX_DIM = 4096

Detailed Description

Shared, bucket-sized render-target pool owned by UIContext (§4.9 Step c).


The documentation for this class was generated from the following file: