Skip to main content

ingest_texture_payload

Function ingest_texture_payload 

Source
pub fn ingest_texture_payload(
    mime_type_or_uri: &str,
    raw_bytes: Option<&[u8]>,
    limits: TextureDecodeLimits,
) -> Result<IngestedTexture, TextureIngestionError>
Expand description

Ingest a texture from either a Data URI or raw encoded bytes with strict signature validation.