SBgl 0.1.0
A graphics framework in C99
Loading...
Searching...
No Matches
sbgl_RenderQueue Struct Reference

Internal storage for draw packets awaiting submission. More...

Collaboration diagram for sbgl_RenderQueue:

Data Fields

sbgl_DrawPacketpackets
 
sbgl_InstanceDatainstances
 
uint32_t count
 
uint32_t capacity
 
struct SblArenaarena
 

Detailed Description

Internal storage for draw packets awaiting submission.

The render queue manages a contiguous array of draw packets that are sorted by their sort keys to minimize GPU state transitions during command recording.

Definition at line 25 of file sbgl_core.c.

Field Documentation

◆ arena

struct SblArena* sbgl_RenderQueue::arena

Arena used for the packet array allocation.

Definition at line 30 of file sbgl_core.c.

◆ capacity

uint32_t sbgl_RenderQueue::capacity

Total number of packets the queue can hold.

Definition at line 29 of file sbgl_core.c.

◆ count

uint32_t sbgl_RenderQueue::count

Number of active packets in the queue.

Definition at line 28 of file sbgl_core.c.

◆ instances

sbgl_InstanceData* sbgl_RenderQueue::instances

Per-instance data (transforms, color).

Definition at line 27 of file sbgl_core.c.

◆ packets

sbgl_DrawPacket* sbgl_RenderQueue::packets

Contiguous array of draw commands.

Definition at line 26 of file sbgl_core.c.


The documentation for this struct was generated from the following file: