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
createBufferUsageMapModeWGPUBufferWGPUShaderModuleWGPUBindGroupLayoutWGPUBindGroupWGPUComputePipelineWGPUQuerySetWGPUComputePassEncoderWGPUCommandBufferWGPUCommandEncoderWGPUQueueWGPULimitsBufferDescriptorShaderModuleDescriptorComputePipelineDescriptorBufferBindingBindGroupEntryBindGroupDescriptorQuerySetDescriptorWGPUDeviceWGPUSupportedFeaturesWGPUAdapterWGPU
torch.js· 2026
LegalTerms of UsePrivacy Policy
/
/
  1. docs
  2. wgpu-native
  3. wgpu-native
  4. WGPUSupportedFeatures

wgpu-native.WGPUSupportedFeatures

export interface WGPUSupportedFeatures {
  /**
   * Check if a feature is supported.
   *
   * @param name - Feature name
   * @returns True if the feature is supported
   */
  has(name: string): boolean;

  /**
   * Get all supported feature names.
   *
   * @returns Iterator over feature name strings
   */
  values(): IterableIterator<string>;

  /**
   * Number of supported features.
   */
  readonly size: number;
}
has((name: string) => boolean)
– Check if a feature is supported.
values(() => IterableIterator<string>)
– Get all supported feature names.
readonlysize(number)
– Number of supported features.

GPU feature support tracking.

Provides information about optional GPU features that the device supports.

Previous
WGPUShaderModule