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
pushconstants.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <glm/glm.hpp>
4
5
12 glm::mat4 model;
14 glm::vec4 color;
16 glm::mat4 viewProj;
18 glm::vec4 camPos;
20 float scale;
22 float fade;
23};
24
31 glm::mat4 model;
33 glm::vec4 color;
35 uint32_t meshID;
37 uint32_t materialID;
38};
Layout of per-instance data uploaded to the GPU for instanced rendering.
Definition pushconstants.hpp:29
uint32_t meshID
ID of the mesh to use.
Definition pushconstants.hpp:35
glm::vec4 color
Instance color.
Definition pushconstants.hpp:33
uint32_t materialID
ID of the material to use.
Definition pushconstants.hpp:37
glm::mat4 model
Model transform matrix.
Definition pushconstants.hpp:31
Struct for passing constant data directly via Vulkan push constants to shaders.
Definition pushconstants.hpp:10
glm::vec4 camPos
Camera position in world space.
Definition pushconstants.hpp:18
float fade
Fade amount (e.g., for grids).
Definition pushconstants.hpp:22
glm::mat4 model
Model matrix of the object being rendered.
Definition pushconstants.hpp:12
glm::vec4 color
Base color multiplier.
Definition pushconstants.hpp:14
glm::mat4 viewProj
Precomputed view-projection matrix.
Definition pushconstants.hpp:16
float scale
Scale factor.
Definition pushconstants.hpp:20