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

Immutable creation parameters of a GPU buffer. More...

#include <GfxEnums.hpp>

Public Attributes

GfxBufferUsage usage = GfxBufferUsage::Vertex
u32 size = 0
bool dynamic = false

Detailed Description

Immutable creation parameters of a GPU buffer.

size is the buffer's capacity; updateBuffer must stay within it. Growing is an explicit resizeBuffer (contents discarded), keeping the handle stable so vertex-layout associations survive.

Definition at line 403 of file GfxEnums.hpp.

Member Data Documentation

◆ dynamic

bool esengine::BufferDesc::dynamic = false

Definition at line 406 of file GfxEnums.hpp.

◆ size

◆ usage


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