Skip to main content

MAX_BUFFER_BYTES

Constant MAX_BUFFER_BYTES 

Source
pub const MAX_BUFFER_BYTES: usize = _ /* 268_435_456usize */;
Expand description

Maximum combined buffer and output size estimated by the built-in buffered rendering backends (256 MiB).

This guards against excessive render requests, not allocator failures under memory pressure. Vector backends and third-party canvases choose their own limits through Canvas::validate_dimensions.