|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| 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.
| format | Pixel format. |