Skip to main content
torch.js has not been released yet.
torch.js logotorch.js logotorch.js
PlaygroundContact
Login
Documentation
IntroductionType SafetyTensor ExpressionsTensor IndexingEinsumEinopsAutogradTraining a ModelProfiling & MemoryPyTorch MigrationBest PracticesRuntimesPerformancePyTorch CompatibilityBenchmarksDType Coverage
Introduction
createdestroyBufferUsageMapModeShaderStageBufferHandleDeviceHandleAdapterHandleShaderModuleHandleComputePipelineHandleBindGroupHandleBindGroupLayoutHandleCommandEncoderHandleCommandBufferHandleComputePassEncoderHandleQuerySetHandleQueueHandleWGPUBufferWGPUShaderModuleWGPUBindGroupLayoutWGPUBindGroupWGPUComputePipelineWGPUQuerySetWGPUComputePassEncoderWGPUCommandBufferWGPUCommandEncoderWGPUQueueWGPULimitsBufferDescriptorShaderModuleDescriptorComputePipelineDescriptorBufferBindingBindGroupEntryBindGroupDescriptorQuerySetDescriptorWGPUDeviceWGPUSupportedFeaturesWGPUAdapterWGPU
torch.js· 2026
LegalTerms of UsePrivacy Policy
/
/
  1. docs
  2. dawn
  3. dawn
  4. WGPUQuerySet

dawn.WGPUQuerySet

export interface WGPUQuerySet {
  /**
   * Opaque native handle to this query set.
   */
  readonly handle: QuerySetHandle;

  /**
   * Number of queries in this set.
   */
  readonly count: number;

  /**
   * Destroy the query set and free GPU resources.
   */
  destroy(): void;
}
readonlyhandle(QuerySetHandle)
– Opaque native handle to this query set.
readonlycount(number)
– Number of queries in this set.
destroy(() => void)
– Destroy the query set and free GPU resources.

Query set for performance profiling.

Collects results from GPU queries (timestamps, occlusion counts, etc.). Query results are resolved to a buffer via WGPUCommandEncoder.resolveQuerySet.

Previous
WGPULimits
Next
WGPUQueue