Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
MaterialConstants.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
13#pragma once
14
15#include "../../core/Types.hpp"
16
17namespace esengine {
18
20inline constexpr u32 MATERIAL_CONSTANTS_BINDING = 1;
21
23inline constexpr const char* MATERIAL_CONSTANTS_BLOCK = "MaterialConstants";
24
26inline constexpr u32 MATERIAL_TEXTURE_UNIT_BASE = 8;
27
36inline constexpr u32 kSceneDepthUnit = 7;
37
45inline constexpr u32 kGBufferUnit = 6;
46
47} // namespace esengine
Core type definitions and utilities for ESEngine.
constexpr const char * MATERIAL_CONSTANTS_BLOCK
GLSL block name; must match ShaderParser's generated block + Shader::compile lookup.
constexpr u32 MATERIAL_TEXTURE_UNIT_BASE
First sampler unit a material texture parameter may use (batch owns units 0..7).
constexpr u32 kGBufferUnit
The unit a PostProcess pass reads the scene's surface record at: what a surface IS — octahedral norma...
constexpr u32 kSceneDepthUnit
The unit a PostProcess pass reads the scene's DEPTH at.
constexpr u32 MATERIAL_CONSTANTS_BINDING
Indexed UBO binding point for the per-material MaterialConstants block.
std::uint32_t u32
Unsigned 32-bit integer.
Definition Types.hpp:45