RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
Loading...
Searching...
No Matches
rmgui_native_storage_desc_t Struct Reference

Fixed create-time storage. More...

#include <native_gpu.h>

Data Fields

size_t instances
size_t resources
size_t upload_bytes
int atlas_width
int atlas_height
size_t glyphs
int resource_width
int resource_height
rmgui_native_readback_fn readback
void * readback_userdata
size_t image_resources
const rmgui_native_pool_t * image_pools
size_t image_pool_count
const rmgui_native_pool_t * mask_pools
size_t mask_pool_count
const rmgui_native_pool_t * surface_pools
size_t surface_pool_count
int root_width
int root_height
size_t retained_surface_slots
size_t gradient_ramp_rows

Detailed Description

Fixed create-time storage.

instances/resources/upload_bytes bound command, resource-map and upload/rollback staging capacity; image_resources is zero for resources or a positive value no greater than resources. Pool lists are borrowed during create. Image and surface pools default to image_resources slots of resource extent; mask pools default to empty, expanding coverage into image slots. Each source uses the least-area fitting slot. Equal extent/hash/bytes reuse committed residency; misses replace an empty or least-recently-used fitting slot. Sources upload only their extent. The R8 glyph atlas has transparent one-texel gutters. root_width/height default to resource extent when both are zero. All frame storage is fixed; prepare and consume allocate nothing. Host sg pools must cover all live renderer resources and any other host-owned resources.

rmgui_native_storage_desc_t.retained_surface_slots

Maximum retained child/shadow surfaces, zero disables reuse. Entries use existing surface-pool slots and are evicted least-recently-used first. Scratch claims may evict retained contents; retention never adds capacity. Must not exceed the number of declared surface slots.

rmgui_native_storage_desc_t.gradient_ramp_rows

Physical 1024-texel gradient ramp rows; 0 keeps the parameter-derived legacy bound. Positive values cap that bound, not parameter capacity. Too many distinct ramps in one frame return STORAGE_EXHAUSTED.

Field Documentation

◆ instances

size_t rmgui_native_storage_desc_t::instances

◆ resources

size_t rmgui_native_storage_desc_t::resources

◆ upload_bytes

size_t rmgui_native_storage_desc_t::upload_bytes

◆ atlas_width

int rmgui_native_storage_desc_t::atlas_width

◆ atlas_height

int rmgui_native_storage_desc_t::atlas_height

◆ glyphs

size_t rmgui_native_storage_desc_t::glyphs

◆ resource_width

int rmgui_native_storage_desc_t::resource_width

◆ resource_height

int rmgui_native_storage_desc_t::resource_height

◆ readback

rmgui_native_readback_fn rmgui_native_storage_desc_t::readback

◆ readback_userdata

void* rmgui_native_storage_desc_t::readback_userdata

◆ image_resources

size_t rmgui_native_storage_desc_t::image_resources

◆ image_pools

const rmgui_native_pool_t* rmgui_native_storage_desc_t::image_pools

◆ image_pool_count

size_t rmgui_native_storage_desc_t::image_pool_count

◆ mask_pools

const rmgui_native_pool_t* rmgui_native_storage_desc_t::mask_pools

◆ mask_pool_count

size_t rmgui_native_storage_desc_t::mask_pool_count

◆ surface_pools

const rmgui_native_pool_t* rmgui_native_storage_desc_t::surface_pools

◆ surface_pool_count

size_t rmgui_native_storage_desc_t::surface_pool_count

◆ root_width

int rmgui_native_storage_desc_t::root_width

◆ root_height

int rmgui_native_storage_desc_t::root_height

◆ retained_surface_slots

size_t rmgui_native_storage_desc_t::retained_surface_slots

◆ gradient_ramp_rows

size_t rmgui_native_storage_desc_t::gradient_ramp_rows

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