]> Chaos Git - corbenik/ctrulib.git/commitdiff
Add a few additional GPU enumerations
authorfincs <fincs.alt1@gmail.com>
Wed, 25 Nov 2015 20:49:26 +0000 (21:49 +0100)
committerfincs <fincs.alt1@gmail.com>
Wed, 25 Nov 2015 20:49:26 +0000 (21:49 +0100)
libctru/include/3ds/gpu/enums.h

index af45a34735d2d40336757fc3c74c9a3d09d1c470..9614b8e0028b909a86017479e4d63efa255d659c 100644 (file)
@@ -40,7 +40,7 @@ typedef enum
        GPU_TEXUNIT2 = 0x4, ///< Texture unit 2.
 } GPU_TEXUNIT;
 
-/// Supported pixel formats.
+/// Supported texture formats.
 typedef enum
 {
        GPU_RGBA8    = 0x0, ///< 8-bit Red + 8-bit Green + 8-bit Blue + 8-bit Alpha
@@ -58,6 +58,24 @@ typedef enum
        GPU_ETC1A4   = 0xC, ///< ETC1 texture compression + 4-bit Alpha
 } GPU_TEXCOLOR;
 
+/// Supported color buffer formats.
+typedef enum
+{
+       GPU_RB_RGBA8    = 0, ///< 8-bit Red + 8-bit Green + 8-bit Blue + 8-bit Alpha
+       GPU_RB_RGB8     = 1, ///< 8-bit Red + 8-bit Green + 8-bit Blue
+       GPU_RB_RGBA5551 = 2, ///< 5-bit Red + 5-bit Green + 5-bit Blue + 1-bit Alpha
+       GPU_RB_RGB565   = 3, ///< 5-bit Red + 6-bit Green + 5-bit Blue
+       GPU_RB_RGBA4    = 4, ///< 4-bit Red + 4-bit Green + 4-bit Blue + 4-bit Alpha
+} GPU_COLORBUF;
+
+/// Supported depth buffer formats.
+typedef enum
+{
+       GPU_RB_DEPTH16          = 0, ///< 16-bit Depth
+       GPU_RB_DEPTH24          = 2, ///< 24-bit Depth
+       GPU_RB_DEPTH24_STENCIL8 = 3, ///< 24-bit Depth + 8-bit Stencil
+} GPU_DEPTHBUF;
+
 /// Test functions.
 typedef enum
 {
@@ -157,6 +175,14 @@ typedef enum
        GPU_LOGICOP_OR_INVERTED   = 15, ///< Inverted bitwize OR.
 } GPU_LOGICOP;
 
+/// Fragment operation modes.
+typedef enum
+{
+       GPU_FRAGOPMODE_GL      = 0, ///< OpenGL mode.
+       GPU_FRAGOPMODE_GAS_ACC = 1, ///< Gas mode (?).
+       GPU_FRAGOPMODE_SHADOW  = 3, ///< Shadow mode (?).
+} GPU_FRAGOPMODE;
+
 /// Supported component formats.
 typedef enum
 {