wgblas
    Preparing search index...
    • Maps the readback buffer, computes timestamps[1] - timestamps[0] (nanoseconds), converts to milliseconds, then destroys all three handles. Returns undefined if ts is null (benchmark mode off).

      Parameters

      • ts:
            | {
                querySet: GPUQuerySet;
                resolveBuffer: GPUBuffer;
                tsReadBuffer: GPUBuffer;
            }
            | null

      Returns Promise<number | undefined>

      elapsed GPU time in ms