The size of one pixel in bytes.
assert(bytes_per_pixel(.GRAY8) == 1);
assert(bytes_per_pixel(.RGBA8) == 4);bytes_per_pixel :: (format: Pixel_Format) -> s64
Parameters
- format: Pixel_Format
Returns
- s64
The size of one pixel in bytes.
assert(bytes_per_pixel(.GRAY8) == 1);
assert(bytes_per_pixel(.RGBA8) == 4);bytes_per_pixel :: (format: Pixel_Format) -> s64