Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

DEFAULT_MAX_VERTICES

Constant DEFAULT_MAX_VERTICES 

Source
pub const DEFAULT_MAX_VERTICES: usize = _; // 1_024usize
Expand description

Vertex-count guard used by Model::from_bytes.

A consumer with its own model arena should call Model::from_bytes_with_vertex_cap and pass that arena’s real capacity: the guard exists so a cook that outgrew the arena fails to load rather than scribbling past it.