Struct DrawPacket2D
Defined in File draw-packet.h
Struct Documentation
-
struct DrawPacket2D
Fully resolved CPU submission.
No entity, asset, font, or live transform is consulted by the renderer. Parameters own copied transforms and images. Ranges use vertex indices/counts. Aggregate construction alone is unvalidated; the pass writer validates before insertion and assigns authored_order.
Public Members
-
std::shared_ptr<const ::CE::Rendering::Geometry::Buffer2D> geometry
Required retained upload; native use requires its original live domain.
-
std::shared_ptr<const ::CE::Rendering::Resources::Material> material
Required immutable material/pipeline generation.
-
std::size_t first_vertex = 0
Zero-based vertex index, not byte offset.
-
std::size_t vertex_count = 0
Nonzero complete-primitive vertex count checked before insertion.
-
::CE::Rendering::Parameters::Set parameters
Complete copied values retaining images/samplers and resolved engine semantics.
-
std::size_t authored_order = 0
PassWriter assigns the packet’s position in authored insertion order.
-
bool order_sensitive = true
Metadata only; current playback preserves authored order for every packet.
-
std::optional<::CE::Rendering::ClipRegion2D> clip
Logical clip copied into the draw, resolved against the playback framebuffer.
-
std::shared_ptr<const ::CE::Rendering::Geometry::Buffer2D> geometry