MayaFlux 1.0.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)
staticnodiscard

Vertices runs would mill to.

No dispatch, no allocation.

Computed from the spans alone, so the output size is known without a readback.

Definition at line 526 of file PrimitiveMill.cpp.

527{
528 uint32_t total = 0;
529 for (const auto& run : runs) {
530 total += triangle_vertex_count(run.topology, run.vertex_count, run.fill);
531 }
532 return total;
533}
void run()
Definition main.cpp:21
constexpr uint32_t triangle_vertex_count(PrimitiveTopology topology, uint32_t n, PolygonMode fill=PolygonMode::FILL) noexcept
Vertices a span of n at topology yields once reduced to a TRIANGLE_LIST, with points becoming quads a...

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

Referenced by operator=().

Here is the call graph for this function:
Here is the caller graph for this function: