Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::render::AtlasInfo Struct Reference

A value-snapshot of one texture atlas's state, taken at a known point. More...

#include <atlas_inventory.hpp>

Public Member Functions

std::size_t texel_capacity () const
 Total addressable texels across every page.
int occupancy_percent () const
 Occupancy clamped to [0, 1] and expressed as a 0-100 percentage, rounded to the nearest integer — the form the panel prints.

Public Attributes

AtlasKind kind = AtlasKind::image
std::string label
 Display label (defaults to the kind name).
int width = 0
 Atlas page width in texels.
int height = 0
 Atlas page height in texels.
int pages = 1
 Number of GPU texture pages.
std::size_t entries = 0
 Live packed regions (glyphs/images/etc).
float occupancy = 0.0f
 Shelf-packer fill fraction, [0, 1].

Detailed Description

A value-snapshot of one texture atlas's state, taken at a known point.

Everything here is a plain copy — safe to read on the UI thread after the render thread has moved on.

Member Function Documentation

◆ occupancy_percent()

int pulp::render::AtlasInfo::occupancy_percent ( ) const
inline

Occupancy clamped to [0, 1] and expressed as a 0-100 percentage, rounded to the nearest integer — the form the panel prints.

◆ texel_capacity()

std::size_t pulp::render::AtlasInfo::texel_capacity ( ) const
inline

Total addressable texels across every page.

Member Data Documentation

◆ entries

std::size_t pulp::render::AtlasInfo::entries = 0

Live packed regions (glyphs/images/etc).

◆ height

int pulp::render::AtlasInfo::height = 0

Atlas page height in texels.

◆ kind

AtlasKind pulp::render::AtlasInfo::kind = AtlasKind::image

◆ label

std::string pulp::render::AtlasInfo::label

Display label (defaults to the kind name).

◆ occupancy

float pulp::render::AtlasInfo::occupancy = 0.0f

Shelf-packer fill fraction, [0, 1].

◆ pages

int pulp::render::AtlasInfo::pages = 1

Number of GPU texture pages.

◆ width

int pulp::render::AtlasInfo::width = 0

Atlas page width in texels.


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