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. WGPUAdapter

wgpu-native.WGPUAdapter

export interface WGPUAdapter {
  /**
   * Adapter capabilities and limits.
   */
  readonly limits: WGPULimits;

  /**
   * Supported optional features on this adapter.
   */
  readonly features: WGPUSupportedFeatures;

  /**
   * Opaque native handle to this adapter.
   */
  readonly handle: AdapterHandle;

  /**
   * Request a device from this adapter.
   *
   * @param descriptor - Device request options (e.g., required features)
   * @returns Promise resolving to a GPU device
   */
  requestDevice(descriptor?: { requiredFeatures?: string[] }): Promise<WGPUDevice>;
}
readonlylimits(WGPULimits)
– Adapter capabilities and limits.
readonlyfeatures(WGPUSupportedFeatures)
– Supported optional features on this adapter.
readonlyhandle(AdapterHandle)
– Opaque native handle to this adapter.
requestDevice((descriptor?: { requiredFeatures?: string[] }) => Promise<WGPUDevice>)
– Request a device from this adapter.

GPU adapter.

Represents a physical GPU or software renderer. An adapter is obtained from the main GPU object via WGPU.requestAdapter.

Previous
WGPU
Next
WGPUBindGroup