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

Per-instance data for automated batching. More...

#include <sbgl_types.h>

Collaboration diagram for sbgl_InstanceData:

Data Fields

sbgl_Mat4 transform
 
sbgl_Vec4 color
 

Detailed Description

Per-instance data for automated batching.

This structure is uploaded to the GPU as an SSBO and accessed via Buffer Device Address (BDA) in the vertex shader.

Definition at line 19 of file sbgl_types.h.

Field Documentation

◆ color

sbgl_Vec4 sbgl_InstanceData::color

Per-instance color tint.

Definition at line 21 of file sbgl_types.h.

◆ transform

sbgl_Mat4 sbgl_InstanceData::transform

World transformation matrix.

Definition at line 20 of file sbgl_types.h.


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