$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
SphereInstanceSSBO Struct Reference

Aligned structure for SSBO storage (std430 layout). More...

#include <ssbo_rendering.h>

Data Fields

mat4 model
 
vec3 albedo
 
float metallic
 
float roughness
 
float ao
 
float _padding [2]
 

Detailed Description

Aligned structure for SSBO storage (std430 layout).

Each instance occupies exactly 80 bytes to maintain alignment.

Field Documentation

◆ _padding

float SphereInstanceSSBO::_padding[2]

8 bytes - padding to reach 80 bytes total.

◆ albedo

vec3 SphereInstanceSSBO::albedo

12 bytes.

◆ ao

float SphereInstanceSSBO::ao

4 bytes.

◆ metallic

float SphereInstanceSSBO::metallic

4 bytes.

◆ model

mat4 SphereInstanceSSBO::model

64 bytes (4x vec4).

◆ roughness

float SphereInstanceSSBO::roughness

4 bytes.


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