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

Encapsulates all data required to submit a single draw call. Optimized for cache density (16 bytes). More...

#include <sbgl_types.h>

Data Fields

sbgl_SortKey key
 
uint32_t header
 
uint32_t _padding
 

Detailed Description

Encapsulates all data required to submit a single draw call. Optimized for cache density (16 bytes).

Definition at line 97 of file sbgl_types.h.

Field Documentation

◆ _padding

uint32_t sbgl_DrawPacket::_padding

Explicit padding for 16-byte alignment. (4 bytes)

Definition at line 100 of file sbgl_types.h.

◆ header

uint32_t sbgl_DrawPacket::header

Packed MeshID, MaterialID, and rendering flags. (4 bytes)

Definition at line 99 of file sbgl_types.h.

◆ key

sbgl_SortKey sbgl_DrawPacket::key

Sorting key based on material, mesh, and depth. (8 bytes)

Definition at line 98 of file sbgl_types.h.


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