Skip to main content

MAX_VALUE

Constant MAX_VALUE 

Source
pub const MAX_VALUE: Type = 2147483647;
Expand description

Generation stamp assigned when this image was added to (or replaced in) the storage. A changed generation for a given image ID means the pixel contents may have changed even when the dimensions, format, and data length are identical (e.g. a retransmission of the same image ID), so texture caches must key staleness on this value rather than on size heuristics.

Stamps are unique and monotonically increasing process-wide and are drawn from the same sequence as GHOSTTY_KITTY_GRAPHICS_DATA_GENERATION. Never zero for a stored image, so zero can be used as an “empty” sentinel by callers.

Output type: uint64_t *