pixelformat: added convenience function for whether a format is float or not

This commit is contained in:
itsmattkc
2020-04-04 13:46:12 +11:00
parent 666bd64943
commit dfb00d9f15
2 changed files with 26 additions and 0 deletions
+5
View File
@@ -114,6 +114,11 @@ public:
*/
static bool FormatHasAlphaChannel(const Format& format);
/**
* @brief Simple convenience function returning whether a pixel format is float-based or integer-based
*/
static bool FormatIsFloat(const Format& format);
/**
* @brief Get corresponding OpenImageIO TypeDesc for a given pixel format
*/