56static_assert(
sizeof(
DrawCallRecord) == 84,
"DrawCallRecord size must match TS decoder");
57static_assert(offsetof(
DrawCallRecord, pass_kind) == 11,
"DrawCallRecord layout must match TS decoder");
58static_assert(offsetof(
DrawCallRecord, instance_count) == 76,
"DrawCallRecord layout must match TS decoder");
59static_assert(offsetof(
DrawCallRecord, texture_offset) == 80,
"DrawCallRecord layout must match TS decoder");
99 bool stepReplay() {
return ++replay_counter_ >= replay_limit_; }
102 std::vector<DrawCallRecord> records_;
103 std::vector<Entity> entities_;
104 std::vector<u32> textures_;
108 bool capturing_ =
false;
109 bool capture_next_ =
false;
110 bool has_data_ =
false;
112 bool replay_mode_ =
false;
113 i32 replay_counter_ = 0;
114 i32 replay_limit_ = -1;
Blend mode enumeration for custom rendering.
Core type definitions and utilities for ESEngine.
u32 getEntityCount() const
u32 getRecordCount() const
const u32 * getTextures() const
void record(const DrawCommand &cmd, std::span< const Entity > entities)
const Entity * getEntities() const
void beginPass(CapturePass kind)
u32 getTextureCount() const
const DrawCallRecord * getRecords() const
u32 recordsInPass(i32 pass) const
void setReplayMode(i32 limit)
bool hasCapturedData() const
std::int32_t i32
Signed 32-bit integer.
std::uint32_t u32
Unsigned 32-bit integer.
BlendMode
Predefined blend modes for rendering.
std::uint8_t u8
Unsigned 8-bit integer.
Entity identifier with packed index + generation.