mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
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:
parent
d313355b22
commit
3c9d37622c
1 changed files with 4 additions and 0 deletions
4
thirdparty/sokol/util/sokol_gl.h
vendored
4
thirdparty/sokol/util/sokol_gl.h
vendored
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue