|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
GPU buffer abstractions for vertex and index data. More...
#include "../../core/Types.hpp"#include "./GfxContent.hpp"#include "./GfxEnums.hpp"#include <span>#include <vector>

Go to the source code of this file.
Classes | |
| struct | esengine::VertexAttribute |
| Describes a single vertex attribute. More... | |
| class | esengine::VertexLayout |
| Describes the layout of vertex data in a buffer. More... | |
| class | esengine::VertexBuffer |
| GPU buffer for vertex data, static or dynamic; all GPU work goes through the device. More... | |
| class | esengine::IndexBuffer |
| GPU buffer for index data. More... | |
Namespaces | |
| namespace | esengine |
Enumerations | |
| enum class | esengine::ShaderDataType { esengine::None = 0 , esengine::Float , esengine::Float2 , esengine::Float3 , esengine::Float4 , esengine::Int , esengine::Int2 , esengine::Int3 , esengine::Int4 , esengine::Bool , esengine::UByte4N } |
| Vertex attribute data types. More... | |
Functions | |
| u32 | esengine::shaderDataTypeSize (ShaderDataType type) |
| Gets the size in bytes of a shader data type. | |
| u32 | esengine::shaderDataTypeComponentCount (ShaderDataType type) |
| Gets the component count of a shader data type. | |
GPU buffer abstractions for vertex and index data.
VertexBuffer and IndexBuffer are thin RAII handles over GfxDevice. They hold no GL state directly — every GPU operation is delegated to the device, so this layer has zero GL dependency.
Definition in file Buffer.hpp.