@feng3d/webgpu
    Preparing search index...

    Interface ComputePassDescriptor

    interface ComputePassDescriptor {
        timestampQuery?: TimestampQuery;
    }
    Index

    Properties

    Properties

    timestampQuery?: TimestampQuery

    查询通道运行消耗时长(单位为纳秒)。

    如果需要查询通道运行消耗时长,需要为该属性赋值,如 pass.timestampQuery = {};。WebGPU渲染完成后引擎自动填充结果到属性elapsedNs