put mtl renderer constants in an enum to silence -Wgnu-folding-constant warnings

This commit is contained in:
Martin Fouilleul 2023-09-19 09:24:23 +02:00
parent 370482a3e0
commit 715ab0f6e3
1 changed files with 6 additions and 3 deletions

View File

@ -15,9 +15,12 @@
#include "mtl_renderer.h" #include "mtl_renderer.h"
const int OC_MTL_INPUT_BUFFERS_COUNT = 3, enum
{
OC_MTL_INPUT_BUFFERS_COUNT = 3,
OC_MTL_TILE_SIZE = 16, OC_MTL_TILE_SIZE = 16,
OC_MTL_MSAA_COUNT = 8; OC_MTL_MSAA_COUNT = 8
};
typedef struct oc_mtl_canvas_backend typedef struct oc_mtl_canvas_backend
{ {