evan 2026.1.4
Evan
Loading...
Searching...
No Matches
evan::GPUInstance Struct Reference

Per-instance data fed to the vertex shader. More...

#include <headers/evan/GPUVertex.hpp>

Public Attributes

glm::mat4 model = glm::mat4(1.0f)
 

Detailed Description

Per-instance data fed to the vertex shader.

One GPUInstance is consumed per drawn instance. The model matrix replaces the CPU-baked world transform when instancing is enabled, letting identical meshes share geometry and differ only by transform.

Definition at line 26 of file GPUVertex.hpp.

Member Data Documentation

◆ model

glm::mat4 evan::GPUInstance::model = glm::mat4(1.0f)

Definition at line 27 of file GPUVertex.hpp.


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