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

wgpu-native.ComputePipelineDescriptor

export interface ComputePipelineDescriptor {
  /**
   * Pipeline layout ('auto' for automatic layout inference).
   */
  layout: 'auto' | unknown;

  /**
   * Compute shader configuration.
   */
  compute: {
    /**
     * The compiled shader module.
     */
    module: WGPUShaderModule;

    /**
     * Entry point function name in the shader.
     * Default: 'main'
     */
    entryPoint?: string;
  };
}
layout('auto' | unknown)
– Pipeline layout ('auto' for automatic layout inference).
compute({ /** * The compiled shader module. */ module: WGPUShaderModule; /** * Entry point function name in the shader. * Default: 'main' */ entryPoint?: string; })
– Compute shader configuration.

Descriptor for creating a compute pipeline.

Previous
BufferUsage
Next
create