MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ format_has_variant_storage() [2/2]

MAYAFLUX_API bool MayaFlux::Kakshya::format_has_variant_storage ( Portal::Graphics::ImageFormat  format)

True when a format decomposes into whole DataVariant elements.

False for DEPTH24 and DEPTH24_STENCIL8: both occupy 4 bytes per pixel in a packed layout that is not a whole number of uint8, uint16, or float elements. A container allocating storage_element_size * channels * pixels for either will not match what a bytes_per_pixel-sized write path produces.

Derived from the format tables rather than enumerated, so it stays correct if a format is added.

Parameters
formatPixel format.