From 3a9964b094ec10e8f47b53a57448081342134df3 Mon Sep 17 00:00:00 2001 From: onelin Date: Wed, 3 Dec 2025 23:01:19 +0100 Subject: Set target texture fmt to rgb --- src/include/daw/rendering.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/include') diff --git a/src/include/daw/rendering.h b/src/include/daw/rendering.h index 9f8ba7c..42881a7 100644 --- a/src/include/daw/rendering.h +++ b/src/include/daw/rendering.h @@ -228,16 +228,17 @@ typedef enum { // mutually exclusive and shared between texture and renderbuffer buffers. //TODO: More formats -#define BUFFERPARAMETER_FMT_RGBA8 (1 << 8) -#define BUFFERPARAMETER_FMT_SRGB8 (2 << 8) -#define BUFFERPARAMETER_FMT_SRGBA8 (3 << 8) - -#define BUFFERPARAMETER_FMT_DEPTH24_STENCIL8 (4 << 8) -#define BUFFERPARAMETER_FMT_DEPTH16 (5 << 8) -#define BUFFERPARAMETER_FMT_DEPTH24 (6 << 8) -#define BUFFERPARAMETER_FMT_DEPTH32 (7 << 8) -#define BUFFERPARAMETER_FMT_DEPTH32F (8 << 8) -#define BUFFERPARAMETER_FMT_STENCIL8 (9 << 8) +#define BUFFERPARAMETER_FMT_RGBA8 ( 1 << 8) +#define BUFFERPARAMETER_FMT_RGB8 ( 2 << 8) +#define BUFFERPARAMETER_FMT_SRGB8 ( 3 << 8) +#define BUFFERPARAMETER_FMT_SRGBA8 ( 4 << 8) + +#define BUFFERPARAMETER_FMT_DEPTH24_STENCIL8 ( 5 << 8) +#define BUFFERPARAMETER_FMT_DEPTH16 ( 6 << 8) +#define BUFFERPARAMETER_FMT_DEPTH24 ( 7 << 8) +#define BUFFERPARAMETER_FMT_DEPTH32 ( 8 << 8) +#define BUFFERPARAMETER_FMT_DEPTH32F ( 9 << 8) +#define BUFFERPARAMETER_FMT_STENCIL8 (10 << 8) // "Easy default" values #define BUFFERPARAMETER_FMT_DEPTH_STENCIL BUFFERPARAMETER_FMT_DEPTH24_STENCIL8 -- cgit v1.3