Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
SkinConstants.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
18#pragma once
19
20#include "../../core/Types.hpp"
21#include "../rhi/GfxEnums.hpp"
22#include "../../math/Math.hpp"
23
24namespace esengine {
25
27inline constexpr u32 SKIN_CONSTANTS_BINDING = 5;
28
30inline constexpr const char* SKIN_CONSTANTS_BLOCK = "SkinConstants";
31
35};
36
37static_assert(sizeof(SkinConstants) == MESH_MAX_BONES * 64,
38 "SkinConstants must be a tight array of mat4 to match std140");
39
40} // namespace esengine
Backend-agnostic graphics enumerations.
Math utilities and GLM configuration for ESEngine.
Core type definitions and utilities for ESEngine.
constexpr const char * SKIN_CONSTANTS_BLOCK
GLSL block name; must match the shader's declaration + Shader::compile lookup.
constexpr u32 SKIN_CONSTANTS_BINDING
Indexed UBO binding point for the per-draw SkinConstants block.
std::uint32_t u32
Unsigned 32-bit integer.
Definition Types.hpp:45
static constexpr u32 MESH_MAX_BONES
Definition GfxEnums.hpp:138
std140 mirror of the block. One mat4 per joint, MESH_MAX_BONES of them.
glm::mat4 bones[MESH_MAX_BONES]