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

Optional hostile-input budgets. More...

#include <mesh.h>

Data Fields

size_t bytes
size_t json_bytes
size_t json_tokens
size_t json_depth
size_t json_members
size_t views
size_t accessors
size_t nodes
size_t meshes
size_t primitives
size_t materials
size_t vertices
size_t triangles
size_t channels
size_t keys
size_t name_bytes
size_t png_bytes
size_t png_dimension
size_t png_pixels
size_t clips
size_t total_keys

Detailed Description

Optional hostile-input budgets.

Zero means the representation's ceiling. GLB lengths and geometry counts are uint32_t; node, mesh and material indices and draw counts are int and cannot exceed INT_MAX. Triangles are limited to UINT32_MAX / 3 by the index count. PNG dimensions fit int and decoded RGBA bytes fit size_t. name_bytes includes the NUL terminator. Budgets bound input work; callers must choose safe recursion/JSON budgets for untrusted documents. The u16 API exports at most UINT16_MAX + 1 vertices. JSON tokens use unsigned indices, reserving zero and an end sentinel (at most UINT_MAX - 2 tokens). All arena byte sizes must fit size_t; GPU draw index counts additionally fit int. Clip IDs are nonnegative int indices; clips limits the clip count. channels independently bounds the total number of channels and the total number of samplers across the file. keys bounds one sampler's key count; total_keys independently bounds the sum of sampler keys and the sum of channel keys (a sampler used by multiple channels counts once per channel against the latter limit). Set these budgets for user-provided assets.

Field Documentation

◆ bytes

size_t rmgui_mesh_limits_t::bytes

◆ json_bytes

size_t rmgui_mesh_limits_t::json_bytes

◆ json_tokens

size_t rmgui_mesh_limits_t::json_tokens

◆ json_depth

size_t rmgui_mesh_limits_t::json_depth

◆ json_members

size_t rmgui_mesh_limits_t::json_members

◆ views

size_t rmgui_mesh_limits_t::views

◆ accessors

size_t rmgui_mesh_limits_t::accessors

◆ nodes

size_t rmgui_mesh_limits_t::nodes

◆ meshes

size_t rmgui_mesh_limits_t::meshes

◆ primitives

size_t rmgui_mesh_limits_t::primitives

◆ materials

size_t rmgui_mesh_limits_t::materials

◆ vertices

size_t rmgui_mesh_limits_t::vertices

◆ triangles

size_t rmgui_mesh_limits_t::triangles

◆ channels

size_t rmgui_mesh_limits_t::channels

◆ keys

size_t rmgui_mesh_limits_t::keys

◆ name_bytes

size_t rmgui_mesh_limits_t::name_bytes

◆ png_bytes

size_t rmgui_mesh_limits_t::png_bytes

◆ png_dimension

size_t rmgui_mesh_limits_t::png_dimension

◆ png_pixels

size_t rmgui_mesh_limits_t::png_pixels

◆ clips

size_t rmgui_mesh_limits_t::clips

◆ total_keys

size_t rmgui_mesh_limits_t::total_keys

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