Contents

struct

SushiRuntime::LateCount

Holds a run count resolved once per run from exactly one live source.

Declared in
include/SushiRuntime/api/graph/graph.hpp

See also

include/SushiRuntime/api/graph/README.md

Public attributes

std::size_t capacity = 0

Plan size; the live count must not exceed it.

std::function< std::size_t()> host

Polled once per run when set; overrides capacity as the count.

const Buffer< std::uint32_t > * device = nullptr

Residency::Host slot a predecessor wrote the live count into.

Borrowed, not owned: this LateCount only observes it, so the buffer it points to must outlive every graph this LateCount is passed to.

std::size_t device_index = 0

Element index of the live count within device.