Function CE::Rendering::resolve_draw_packet

Function Documentation

DrawPacket2D CE::Rendering::resolve_draw_packet(std::shared_ptr<const ::CE::Rendering::Geometry::Buffer2D> geometry, std::size_t first_vertex, std::size_t vertex_count, const DrawStyle2D &style, const ::CE::Rendering::Parameters::PassSemantics &pass, const ::CE::Rendering::Parameters::Set &pass_values, const ::CE::Rendering::Pipelines::PassConstraints2D &constraints)

Declaration: [[nodiscard]]

Resolve and validate one independent owned CPU packet without native calls.

Parameters:
  • geometry – Retained immutable upload.

  • first_vertex – First uploaded vertex, not bytes.

  • vertex_count – Nonzero complete-primitive range count.

  • style – Stable draw values with a nonnull material; this primitive has no asset-default lookup.

  • pass – Copied engine pass semantics.

  • pass_values – Lower-priority custom pass layer.

  • constraints – Pass-state requirements.

Returns:

Complete packet retaining geometry/material/images/samplers; PassWriter later assigns authored_order. Validation/allocation failures publish no packet and leave borrowed inputs unchanged.