|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Describes how vertex-buffer bytes map to shader attributes. More...
#include <GfxEnums.hpp>
Public Attributes | |
| GfxVertexAttribute | attributes [MAX_VERTEX_ATTRIBUTES] = {} |
| u32 | attributeCount = 0 |
| u32 | strides [MAX_VERTEX_BUFFER_SLOTS] = {} |
| bool | instanceStep [MAX_VERTEX_BUFFER_SLOTS] = {} |
Describes how vertex-buffer bytes map to shader attributes.
Registered once (createVertexLayout) and referenced by pipelines; the buffers themselves bind per draw via setVertexBuffer. A slot with instanceStep advances per instance (attribute divisor 1).
Definition at line 235 of file GfxEnums.hpp.
| u32 esengine::VertexLayoutDesc::attributeCount = 0 |
Definition at line 237 of file GfxEnums.hpp.
Referenced by esengine::WebGPUDevice::backendAcceptsVertexLayout(), esengine::CustomGeometry::init(), and esengine::resource::MeshArena::sameLayout().
| GfxVertexAttribute esengine::VertexLayoutDesc::attributes[MAX_VERTEX_ATTRIBUTES] = {} |
Definition at line 236 of file GfxEnums.hpp.
Referenced by esengine::WebGPUDevice::backendAcceptsVertexLayout(), esengine::CustomGeometry::init(), and esengine::resource::MeshArena::sameLayout().
| bool esengine::VertexLayoutDesc::instanceStep[MAX_VERTEX_BUFFER_SLOTS] = {} |
Definition at line 239 of file GfxEnums.hpp.
Referenced by esengine::resource::MeshArena::sameLayout().
| u32 esengine::VertexLayoutDesc::strides[MAX_VERTEX_BUFFER_SLOTS] = {} |
Definition at line 238 of file GfxEnums.hpp.
Referenced by esengine::CustomGeometry::init(), and esengine::resource::MeshArena::sameLayout().