Format a Texture.Format into the related bit count. If the format is not supported, it returns 0.
assert(formatToBits(Texture.Format.RGBA) == 32); assert(formatToBits(Texture.Format.RGB) == 24); assert(formatToBits(Texture.Format.BGRA) == 32); assert(formatToBits(Texture.Format.BGR) == 24);
See Implementation
Format a Texture.Format into the related bit count. If the format is not supported, it returns 0.