GPU payload reservation (no driver alignment, metadata, handle pools, host targets, external images or CPU arrays):
More...
#include <native_gpu.h>
GPU payload reservation (no driver alignment, metadata, handle pools, host targets, external images or CPU arrays):
- atlas: atlas_width*atlas_height R8 bytes;
- image: 4-byte white texel plus 12*w*h per image slot (RGBA8 + RGBA16F);
- mask: w*h per mask slot; layer: 4*w*h per surface slot;
- geometry: 192*instances + 16*vertices + 4*indices + 16*parameters, two upload_bytes staging buffers, image-copy staging (256-byte aligned 8*w rows, or 256 bytes for an empty image pool), three parameter payloads of 4096*ceil(parameters/256), 8192*ramp_rows, a retained RGBA8 root (4*root_width*root_height), one 96-byte retained instance and six 48-byte corner buffers. resources/glyphs/runs/passes/dependencies add CPU storage only. Pool lists/defaults and root defaults are described above. ramp_rows=min(parameters/2+1,max_image_size_2d,gradient_ramp_rows), omitting the final bound when zero. All are eager: lazily creating ramps, retained root, filtered image copies, parameter textures or surface targets would require changing the allocation-free prepare contract. No such growth occurs.
◆ storage
◆ vertices
| size_t rmgui_native_desc_t::vertices |
◆ indices
| size_t rmgui_native_desc_t::indices |
◆ parameters
| size_t rmgui_native_desc_t::parameters |
◆ runs
| size_t rmgui_native_desc_t::runs |
◆ passes
| size_t rmgui_native_desc_t::passes |
◆ dependencies
| size_t rmgui_native_desc_t::dependencies |
The documentation for this struct was generated from the following file: