Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
InstanceDataGPU Struct Reference

Layout of per-instance data uploaded to the GPU for instanced rendering. More...

#include <pushconstants.hpp>

Public Attributes

glm::mat4 model
 Model transform matrix.
glm::vec4 color
 Instance color.
uint32_t meshID
 ID of the mesh to use.
uint32_t materialID
 ID of the material to use.

Detailed Description

Layout of per-instance data uploaded to the GPU for instanced rendering.

Member Data Documentation

◆ color

glm::vec4 InstanceDataGPU::color

Instance color.

◆ materialID

uint32_t InstanceDataGPU::materialID

ID of the material to use.

◆ meshID

uint32_t InstanceDataGPU::meshID

ID of the mesh to use.

◆ model

glm::mat4 InstanceDataGPU::model

Model transform matrix.


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