thirdparty/sokol: allow -cflags -D_SGL_DEFAULT_MAX_VERTICES=4194304 to customize how many vertices you can send through gg/sokol in a frame

This commit is contained in:
Delyan Angelov 2025-01-06 13:46:27 +02:00
parent d313355b22
commit 3c9d37622c
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -2314,8 +2314,12 @@ typedef struct {
#define _SGL_DEFAULT_CONTEXT_POOL_SIZE (4)
#define _SGL_DEFAULT_PIPELINE_POOL_SIZE (64)
// __v_ start
#if !defined(_SGL_DEFAULT_MAX_VERTICES)
#define _SGL_DEFAULT_MAX_VERTICES (1<<17)
#endif
#if !defined(_SGL_DEFAULT_MAX_COMMANDS)
#define _SGL_DEFAULT_MAX_COMMANDS (1<<15)
#endif
// __v_ end
#define _SGL_SLOT_SHIFT (16)
#define _SGL_MAX_POOL_SIZE (1<<_SGL_SLOT_SHIFT)