Capítulo 788 de 859
Manages a pool of WebGPU timestamp queries for performance measurement. Extends the base TimestampQueryPool to provide WebGPU-specific implementation.
Constructor
| Signature |
|---|
new WebGPUTimestampQueryPool( device : GPUDevice, type : string, maxQueries : number ) |
Methods
| Method | Description |
|---|---|
.allocateQueriesForContext( uid : string ) : number | Allocates a pair of queries for a given render context. |
.dispose() : Promise (async) | Dispose of the query pool. |
.resolveQueriesAsync() : Promise.<number> (async) | Asynchronously resolves all pending queries and returns the total duration. If there's already a pending resolve operation, returns that promise instead. |