Skip to main content

encode_surface

Function encode_surface 

Source
pub fn encode_surface(
    entries: &[SurfaceEntry],
    scene: &Scene,
) -> Result<Vec<u8>, EncodeSurfaceError>
Expand description

Encodes entries as a surface paint payload of version SURFACE_VERSION, in their order, checking them against scene. Every entry names its program.