Estella
0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
PlanarConstants.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
3
#pragma once
4
#include "
../../core/Types.hpp
"
5
#include <glm/glm.hpp>
6
namespace
esengine
{
7
inline
constexpr
u32
PLANAR_CONSTANTS_BINDING
= 9;
8
inline
constexpr
const
char
*
PLANAR_CONSTANTS_BLOCK
=
"PlanarConstants"
;
9
struct
PlanarConstants
{
10
glm::mat4
projection
{1.0f};
11
// x = active, y = render-target UV y sign, zw = one texel.
12
glm::vec4
params
{0.0f};
13
};
14
static_assert
(
sizeof
(PlanarConstants) == 80);
15
}
// namespace esengine
Types.hpp
Core type definitions and utilities for ESEngine.
esengine
Definition
EasingFunctions.hpp:10
esengine::u32
std::uint32_t u32
Unsigned 32-bit integer.
Definition
Types.hpp:45
esengine::PLANAR_CONSTANTS_BINDING
constexpr u32 PLANAR_CONSTANTS_BINDING
Definition
PlanarConstants.hpp:7
esengine::PLANAR_CONSTANTS_BLOCK
constexpr const char * PLANAR_CONSTANTS_BLOCK
Definition
PlanarConstants.hpp:8
esengine::PlanarConstants
Definition
PlanarConstants.hpp:9
esengine::PlanarConstants::projection
glm::mat4 projection
Definition
PlanarConstants.hpp:10
esengine::PlanarConstants::params
glm::vec4 params
Definition
PlanarConstants.hpp:12
src
esengine
renderer
store
PlanarConstants.hpp
Generated by
1.15.0