Renderer · function

recordPassSample

Add one sample to a pass.

Explained in Hello world.

function recordPassSample(timings: PassTimings, pass: number, ms: number): void
import { recordPassSample } from '@driftengine/core';

Parameters

ParameterTypeDescription
timingsPassTimings
passnumber
msnumber

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.