Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::VertexLayoutDesc Struct Reference

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] = {}

Detailed Description

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.

Member Data Documentation

◆ attributeCount

u32 esengine::VertexLayoutDesc::attributeCount = 0

◆ attributes

◆ instanceStep

bool esengine::VertexLayoutDesc::instanceStep[MAX_VERTEX_BUFFER_SLOTS] = {}

Definition at line 239 of file GfxEnums.hpp.

Referenced by esengine::resource::MeshArena::sameLayout().

◆ strides

u32 esengine::VertexLayoutDesc::strides[MAX_VERTEX_BUFFER_SLOTS] = {}

The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/renderer/rhi/GfxEnums.hpp