Alchemy
Loading...
Searching...
No Matches

vram_tab.h File Reference

The sprite VRAM block cache and its owners. More...

Go to the source code of this file.

Data Structures

struct  VramBlockCacheEntry
 A sprite slot of the VRAM cache: the size of its block and where the block starts in OBJ VRAM. More...

Enumerations

enum  VramBlockLimits {
  VRAM_CACHE_ENTRY_COUNT = 96 , VRAM_BLOCK_COUNT = 512 , VRAM_BLOCK_BYTES = 64 , VRAM_BLOCK_OWNER_FREE = 0xff ,
  VRAM_CACHE_OFFSET_FREE = 0xffff
}

Functions

 STATIC_ASSERT (sizeof(struct VramBlockCacheEntry)==4)
 STATIC_ASSERT (offsetof(struct VramBlockCacheEntry, offset)==2)

Variables

u8 gResourceBlockOwners [VRAM_BLOCK_COUNT]
struct VramBlockCacheEntry gVramBlockCache []

Detailed Description

The sprite VRAM block cache and its owners.

Definition in file vram_tab.h.

Enumeration Type Documentation

◆ VramBlockLimits

Enumerator
VRAM_CACHE_ENTRY_COUNT 
VRAM_BLOCK_COUNT 
VRAM_BLOCK_BYTES 
VRAM_BLOCK_OWNER_FREE 
VRAM_CACHE_OFFSET_FREE 

Definition at line 11 of file vram_tab.h.

Function Documentation

◆ STATIC_ASSERT() [1/2]

STATIC_ASSERT ( sizeof(struct VramBlockCacheEntry) = =4)

◆ STATIC_ASSERT() [2/2]

STATIC_ASSERT ( offsetof(struct VramBlockCacheEntry, offset) = =2)

Variable Documentation

◆ gResourceBlockOwners

◆ gVramBlockCache