mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 20:51:29 +11:00
55e35dd879
When the initial allocation is exceeded, do an atomic bump allocation. This is done for both tilegroup instances and per tile command lists.
26 lines
595 B
C
26 lines
595 B
C
// Various constants for the sizes of groups and tiles.
|
|
|
|
// Much of this will be made dynamic in various ways, but for now it's easiest
|
|
// to hardcode and keep all in one place.
|
|
|
|
// TODO: make the image size dynamic.
|
|
#define IMAGE_WIDTH 2048
|
|
#define IMAGE_HEIGHT 1536
|
|
|
|
// TODO: compute this
|
|
#define WIDTH_IN_TILEGROUPS 4
|
|
|
|
#define TILEGROUP_WIDTH_PX 512
|
|
#define TILEGROUP_HEIGHT_PX 16
|
|
|
|
#define TILEGROUP_INITIAL_ALLOC 1024
|
|
|
|
// TODO: compute all these
|
|
|
|
#define WIDTH_IN_TILES 128
|
|
#define TILEGROUP_WIDTH_TILES 32
|
|
#define TILE_WIDTH_PX 16
|
|
#define TILE_HEIGHT_PX 16
|
|
|
|
#define PTCL_INITIAL_ALLOC 1024
|