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

clip_to_plane_uninit

Function clip_to_plane_uninit 

Source
pub fn clip_to_plane_uninit<Vertex: Copy, Plane: AttributedClipPlane<Vertex>>(
    source: &[Vertex],
    destination: &mut [MaybeUninit<Vertex>],
    plane: &Plane,
    traversal: ClipTraversal,
) -> Result<usize, ClipOverflow>
Expand description

clip_to_plane into uninitialised scratch, so console renderers can keep stack or scratchpad scratch as MaybeUninit and pay only for the vertices clipping emits. On Ok(n) the first n entries are initialised.

§Errors

ClipOverflow when destination is too small.