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

dawn.WGPUComputePipeline

export interface WGPUComputePipeline {
  /**
   * Opaque native handle to this compute pipeline.
   */
  readonly handle: ComputePipelineHandle;

  /**
   * Get the bind group layout at the specified index.
   *
   * @param index - Bind group layout index
   * @returns The bind group layout
   */
  getBindGroupLayout(index: number): WGPUBindGroupLayout;
}
readonlyhandle(ComputePipelineHandle)
– Opaque native handle to this compute pipeline.
getBindGroupLayout((index: number) => WGPUBindGroupLayout)
– Get the bind group layout at the specified index.

Compute pipeline.

Combines a compute shader with a resource layout, ready for dispatch.

Previous
WGPUComputePassEncoder
Next
WGPUDevice