Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::geode::benchmarks::DrawCpuWorkload Class Reference

Uses the shipped SlugFill pipeline and all eleven reflected bind slots. One target and bind group serve every sample so the timer isolates command recording and submission. More...

#include "donner/svg/renderer/geode/benchmarks/DrawCpuWorkload.h"

Public Member Functions

 DrawCpuWorkload (gpu::Device &device)
 DrawCpuWorkload (const DrawCpuWorkload &)=delete
DrawCpuWorkload & operator= (const DrawCpuWorkload &)=delete
bool initialize ()
 Creates and uploads a small, valid fill scene before timing starts.
std::optional< DrawCpuSample > run (uint32_t draws)
 Records and submits N real triangle draws; checks the observer after each sample.

Detailed Description

Uses the shipped SlugFill pipeline and all eleven reflected bind slots. One target and bind group serve every sample so the timer isolates command recording and submission.

Constructor & Destructor Documentation

◆ DrawCpuWorkload()

donner::geode::benchmarks::DrawCpuWorkload::DrawCpuWorkload ( gpu::Device & device)
inlineexplicit
Parameters
deviceBackend to measure; must outlive this workload.

Member Function Documentation

◆ run()

std::optional< DrawCpuSample > donner::geode::benchmarks::DrawCpuWorkload::run ( uint32_t draws)
inline

Records and submits N real triangle draws; checks the observer after each sample.

Parameters
drawsNumber of draws, greater than zero.
Returns
Timings, or no value after an explicit failure.

The documentation for this class was generated from the following file: