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 Struct Reference

Struct for passing constant data directly via Vulkan push constants to shaders. More...

#include <pushconstants.hpp>

Public Attributes

glm::mat4 model
 Model matrix of the object being rendered.
glm::vec4 color
 Base color multiplier.
glm::mat4 viewProj
 Precomputed view-projection matrix.
glm::vec4 camPos
 Camera position in world space.
float scale
 Scale factor.
float fade
 Fade amount (e.g., for grids).

Detailed Description

Struct for passing constant data directly via Vulkan push constants to shaders.

Member Data Documentation

◆ camPos

glm::vec4 PushConstants::camPos

Camera position in world space.

◆ color

glm::vec4 PushConstants::color

Base color multiplier.

◆ fade

float PushConstants::fade

Fade amount (e.g., for grids).

◆ model

glm::mat4 PushConstants::model

Model matrix of the object being rendered.

◆ scale

float PushConstants::scale

Scale factor.

◆ viewProj

glm::mat4 PushConstants::viewProj

Precomputed view-projection matrix.


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