MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ milled_vertex_count()

uint32_t MayaFlux::Portal::Graphics::PrimitiveMill::milled_vertex_count ( std::span< const DrawRun runs)
static

Vertices runs would mill to.

No dispatch, no allocation.

Closed form over the spans, which is why nothing here needs an atomic counter, a readback, or a frame of latency to learn its own output size.

Definition at line 476 of file PrimitiveMill.cpp.

477{
478 uint32_t total = 0;
479 for (const auto& run : runs) {
480 total += triangle_vertex_count(run.topology, run.vertex_count);
481 }
482 return total;
483}
uint32_t total
void run()
Definition main.cpp:22
constexpr uint32_t triangle_vertex_count(PrimitiveTopology topology, uint32_t n) noexcept
Vertices a span of n at topology yields once reduced to a TRIANGLE_LIST, with points becoming quads a...

References run(), total, and MayaFlux::Portal::Graphics::triangle_vertex_count().

+ Here is the call graph for this function: