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"
|
| | 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.
|
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.
◆ DrawCpuWorkload()
| donner::geode::benchmarks::DrawCpuWorkload::DrawCpuWorkload |
( |
gpu::Device & | device | ) |
|
|
inlineexplicit |
- Parameters
-
| device | Backend to measure; must outlive this workload. |
◆ 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
-
| draws | Number 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: