A value-snapshot of one texture atlas's state, taken at a known point.
More...
#include <atlas_inventory.hpp>
|
| 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.
|
|
| 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].
|
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.
◆ 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.
◆ 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
◆ 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: