Class PassWriter

Class Documentation

class PassWriter

Declaration: final

A short-lived handle to one pass.

Its index stays valid if adding another pass grows the frame’s outer vector. Use it only while the frame is being prepared. No writer operation synchronizes or publishes a slot to another thread.

Public Functions

inline void reserve_draws(std::size_t count)
inline ::CE::Rendering::Parameters::PassSemantics semantics() const

Declaration: [[nodiscard]]

inline const ::CE::Rendering::Parameters::Set &parameters() const

Declaration: [[nodiscard]]

inline const ::CE::Rendering::Pipelines::PassConstraints2D &constraints() const

Declaration: [[nodiscard]]

inline void add(::CE::Rendering::DrawPacket2D draw)

Validate and append one owned packet in authored order.

Validation/allocation failure leaves the existing draw list intact.

Parameters:

draw – Packet retaining the resources needed for later rendering.

inline void add(std::vector<::CE::Rendering::DrawPacket2D> draws)

Validate a complete group before inserting any glyph/asset packets.

Validation/storage-limit failures leave existing draws intact.

Parameters:

draws – Owned packet group appended in its existing order.

Friends

friend class ::CE::Rendering::FrameWriter