Skip to main content

flat_styles_rgba8

Function flat_styles_rgba8 

Source
pub fn flat_styles_rgba8(
    resolved: &ResolvedPrepass,
    decoder: &mut EntityDecoder<'_>,
) -> (Vec<u32>, Vec<u8>)
Expand description

Flat wire encodings of the resolved styles for the browser’s styleIds/styleColors arrays: the rich style index flattened to (ids, rgba8), with IfcIndexedColourMap dominants, flat material colours, and per-element first material colours filling the gaps — the exact layered precedence the browser prepasses have always shipped.