Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2021-02-20 19:01:28 +0300
committerClément Foucault <foucault.clem@gmail.com>2021-02-21 03:33:56 +0300
commit6fa984a1afaadcfd5d7a630da4c44bdee4676bd5 (patch)
tree84d3870456de855963a3757dd529a1683f485786 /source/blender/gpu/GPU_texture.h
parent1a9fe57a9f6e53e5f34c95441be27296dadefa75 (diff)
GPU: Add RGB10_A2 format support
Nice format to output high definition normals or normalized colors.
Diffstat (limited to 'source/blender/gpu/GPU_texture.h')
-rw-r--r--source/blender/gpu/GPU_texture.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/gpu/GPU_texture.h b/source/blender/gpu/GPU_texture.h
index 2b4d8c8f577..d9a01663de0 100644
--- a/source/blender/gpu/GPU_texture.h
+++ b/source/blender/gpu/GPU_texture.h
@@ -114,15 +114,15 @@ typedef enum eGPUTextureFormat {
GPU_R16F,
GPU_R16, /* Max texture buffer format. */
-/* Special formats texture & renderbuffer */
-#if 0
+ /* Special formats texture & renderbuffer */
GPU_RGB10_A2,
- GPU_RGB10_A2UI,
-#endif
GPU_R11F_G11F_B10F,
GPU_DEPTH32F_STENCIL8,
GPU_DEPTH24_STENCIL8,
GPU_SRGB8_A8,
+#if 0
+ GPU_RGB10_A2UI,
+#endif
/* Texture only format */
GPU_RGB16F,
@@ -175,6 +175,7 @@ typedef enum eGPUDataFormat {
GPU_DATA_UBYTE,
GPU_DATA_UINT_24_8,
GPU_DATA_10_11_11_REV,
+ GPU_DATA_2_10_10_10_REV,
} eGPUDataFormat;
unsigned int GPU_texture_memory_usage_get(void);