pixelformat: added convenience function for whether a format is float or not
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user