diff options
Diffstat (limited to 'intern/cycles/render/image.h')
-rw-r--r-- | intern/cycles/render/image.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/intern/cycles/render/image.h b/intern/cycles/render/image.h index b608bc30e70..cd7130b3898 100644 --- a/intern/cycles/render/image.h +++ b/intern/cycles/render/image.h @@ -44,6 +44,18 @@ public: /* Automatically set. */ ImageDataType type; bool is_linear; + + bool operator==(const ImageMetaData& other) const + { + return is_float == other.is_float && + is_half == other.is_half && + channels == other.channels && + width == other.width && + height == other.height && + depth == other.depth && + type == other.type && + is_linear == other.is_linear; + } }; class ImageManager { |