From 4e9fffc2892601b3b11366f115f342ebeeb026f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Tue, 25 Feb 2020 15:05:53 +0100 Subject: GPU: Add Image property to allow high bitdepth support on a per image basis This adds the `Half Float Precision` option in the image property panel. This option is only available on float textures and is enabled by default. Adding a flag inside the imbuf (IB_halffloat) on load is done for EXR and PSD formats that can store half floating point (16bits/channels). The option is then not displayed in this case and forced. Related task T73086 Reviewed By: brecht Differential Revision: https://developer.blender.org/D6891 --- source/blender/imbuf/IMB_imbuf_types.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/imbuf/IMB_imbuf_types.h') diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h index 61aa1f401a0..0568c425e78 100644 --- a/source/blender/imbuf/IMB_imbuf_types.h +++ b/source/blender/imbuf/IMB_imbuf_types.h @@ -291,6 +291,7 @@ enum { IB_alphamode_ignore = 1 << 15, IB_thumbnail = 1 << 16, IB_multiview = 1 << 17, + IB_halffloat = 1 << 18, }; /** \} */ -- cgit v1.2.3