libdragon
Loading...
Searching...
No Matches
rdpq_constants.h
1#ifndef __LIBDRAGON_RDPQ_CONSTANTS_H
2#define __LIBDRAGON_RDPQ_CONSTANTS_H
3
4#define RDPQ_ADDRESS_TABLE_SIZE 16
5
6#define RDPQ_DYNAMIC_BUFFER_SIZE (1024 * 64)
7
8// Asserted if #rdpq_mode_blender was called in fill/copy mode
9#define RDPQ_ASSERT_FILLCOPY_BLENDING 0xC003
10
11// Asserted if a 2-pass combiner is set with #rdpq_mode_combiner while mipmap is enabled.
12#define RDPQ_ASSERT_MIPMAP_COMB2 0xC004
13
14// Asserted if RDPQCmd_Triangle is called with RDPQ_TRIANGLE_REFERENCE == 0
15#define RDPQ_ASSERT_INVALID_CMD_TRI 0xC005
16
17// Asserted if RDPQ_Send is called with invalid parameters (begin > end)
18#define RDPQ_ASSERT_SEND_INVALID_SIZE 0xC006
19
20// Asserted if the TMEM is full during an auto-TMEM operation
21#define RDPQ_ASSERT_AUTOTMEM_FULL 0xC007
22
23// Asserted if the TMEM is full during an auto-TMEM operation
24#define RDPQ_ASSERT_AUTOTMEM_UNPAIRED 0xC008
25
26#define RDPQ_MAX_COMMAND_SIZE 44
27#define RDPQ_BLOCK_MIN_SIZE 64
28#define RDPQ_BLOCK_MAX_SIZE 4192
29
31#define RDPQ_TRIANGLE_REFERENCE 0
32
33#endif