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

RENDER_FACE_INDEX_MASK

Constant RENDER_FACE_INDEX_MASK 

Source
pub const RENDER_FACE_INDEX_MASK: u32 = 0x3ff;
Expand description

Three ten-bit indices fit one hot word exactly (with the top two bits unused), so a model whose faces are packed this way can have at most RENDER_FACE_INDEX_MASK + 1 (1024) vertices. DEFAULT_MAX_VERTICES is that bound, so Model::from_bytes never admits a model the packing would mangle; a caller that passes a larger cap to Model::from_bytes_with_vertex_cap must not pack its faces.