6#define DEFINE_FORMAT(format, name, componentType, size, channels, isdepth, isSRGB) \
7{format, name, componentType, size, channels, isdepth, isSRGB }
155 return info ? info->name :
"Unknown";
165 return info ? info->size : 0;
170 return info ? info->channels : 0;
175 return info ? info->isDepth :
false;
180 return info ? info->isSrgb :
false;
Contains all graphics related classes and structs.
constexpr bool isDepthFormat(Format fmt)
constexpr bool isSrgbFormat(Format fmt)
constexpr FormatInfo formatTable[]
constexpr uint32_t formatChannels(Format fmt)
constexpr const char * formatName(Format fmt)
constexpr ComponentType componentType(Format fmt)
constexpr size_t formatSize(Format fmt)
constexpr const FormatInfo * getFormatInfo(Format fmt)