|
RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
|
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 |
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.
| size_t rmgui_native_storage_desc_t::instances |
| size_t rmgui_native_storage_desc_t::resources |
| size_t rmgui_native_storage_desc_t::upload_bytes |
| int rmgui_native_storage_desc_t::atlas_width |
| int rmgui_native_storage_desc_t::atlas_height |
| size_t rmgui_native_storage_desc_t::glyphs |
| int rmgui_native_storage_desc_t::resource_width |
| int rmgui_native_storage_desc_t::resource_height |
| rmgui_native_readback_fn rmgui_native_storage_desc_t::readback |
| void* rmgui_native_storage_desc_t::readback_userdata |
| size_t rmgui_native_storage_desc_t::image_resources |
| const rmgui_native_pool_t* rmgui_native_storage_desc_t::image_pools |
| size_t rmgui_native_storage_desc_t::image_pool_count |
| const rmgui_native_pool_t* rmgui_native_storage_desc_t::mask_pools |
| size_t rmgui_native_storage_desc_t::mask_pool_count |
| const rmgui_native_pool_t* rmgui_native_storage_desc_t::surface_pools |
| size_t rmgui_native_storage_desc_t::surface_pool_count |
| int rmgui_native_storage_desc_t::root_width |
| int rmgui_native_storage_desc_t::root_height |
| size_t rmgui_native_storage_desc_t::retained_surface_slots |
| size_t rmgui_native_storage_desc_t::gradient_ramp_rows |