Gradient atlas — caches evaluated gradient ramps as GPU textures.
More...
#include <texture_atlas.hpp>
Gradient atlas — caches evaluated gradient ramps as GPU textures.
Gradients are keyed by a hash of their stops/colors.
◆ allocate()
| bool pulp::render::GradientAtlas::allocate |
( |
uint64_t | key, |
|
|
int & | row ) |
◆ entry_count()
| size_t pulp::render::GradientAtlas::entry_count |
( |
| ) |
const |
|
inline |
◆ evict_stale()
| size_t pulp::render::GradientAtlas::evict_stale |
( |
uint64_t | current_frame, |
|
|
uint64_t | max_age = 120 ) |
◆ has()
| bool pulp::render::GradientAtlas::has |
( |
uint64_t | key | ) |
const |
|
inline |
◆ mark_used()
| void pulp::render::GradientAtlas::mark_used |
( |
uint64_t | key, |
|
|
uint64_t | frame ) |
◆ occupancy()
| float pulp::render::GradientAtlas::occupancy |
( |
| ) |
const |
|
inline |
◆ row_capacity()
| int pulp::render::GradientAtlas::row_capacity |
( |
| ) |
const |
|
inline |
Read-only introspection for the inspector's atlas viewer.
A GradientAtlas is row-packed (one ramp per row) rather than shelf-packed, so occupancy is simply allocated rows over the row budget.
◆ rows_used()
| int pulp::render::GradientAtlas::rows_used |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: