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

#include <AotHost.hpp>

Public Attributes

const std::uint32_t * sparse = nullptr
std::uint32_t sparseCount = 0
unsigned char * rows = nullptr
std::uint32_t stride = 0
std::uint32_t indexMask = 0
const std::uint32_t * owners = nullptr
std::uint32_t ownerCount = 0

Detailed Description

A component handed over as MEMORY rather than as a callback: rows at a stride, and a sparse table of slot + 1 by entity index. What ScriptPool::span gives — a script component's entity-to-slot map lives in the scripting language, and asking it per entity per frame is what AOT exists to delete.

Definition at line 281 of file AotHost.hpp.

Member Data Documentation

◆ indexMask

std::uint32_t esengine::aot::RowSpan::indexMask = 0

Entity::Layout::INDEX_MASK, passed rather than included so this header stays free of the engine and the harness needs no link.

Definition at line 288 of file AotHost.hpp.

Referenced by esengine::aot::rowAt().

◆ ownerCount

std::uint32_t esengine::aot::RowSpan::ownerCount = 0

Slots ever claimed. A pool reuses slots rather than compacting, so this is a high-water mark and the array has holes — see NO_OWNER.

Definition at line 299 of file AotHost.hpp.

Referenced by esengine::aot::fromMovingOwners().

◆ owners

const std::uint32_t* esengine::aot::RowSpan::owners = nullptr

Slot -> the raw entity holding it, so this column can be asked WHO is in it. The sparse table above answers the other direction only.

Null where the owner reported none — the one reason a script component fails to narrow.

Definition at line 296 of file AotHost.hpp.

Referenced by esengine::aot::fromMovingOwners().

◆ rows

unsigned char* esengine::aot::RowSpan::rows = nullptr

Definition at line 284 of file AotHost.hpp.

Referenced by esengine::aot::rowAt().

◆ sparse

const std::uint32_t* esengine::aot::RowSpan::sparse = nullptr

Definition at line 282 of file AotHost.hpp.

Referenced by esengine::aot::rowAt().

◆ sparseCount

std::uint32_t esengine::aot::RowSpan::sparseCount = 0

Definition at line 283 of file AotHost.hpp.

Referenced by esengine::aot::rowAt().

◆ stride

std::uint32_t esengine::aot::RowSpan::stride = 0

Definition at line 285 of file AotHost.hpp.

Referenced by esengine::aot::rowAt().


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