Skip to main content

buffer_memory_bytes

Function buffer_memory_bytes 

Source
pub fn buffer_memory_bytes(width: u16, height: u16) -> usize
Expand description

Compute the memory footprint of a buffer with the given dimensions.

This accounts for the cell array only (not dirty tracking or stack metadata).