Renderer · function
recordPassSample
Add one sample to a pass.
Explained in Hello world.
function recordPassSample(timings: PassTimings, pass: number, ms: number): voidimport { recordPassSample } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
timings | PassTimings | |
pass | number | |
ms | number |
In depth
Accumulates rather than replaces, because a pass may be sampled more than once in a frame — a shadow pass runs per cascade — and the row a reader wants is what that pass cost altogether.