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

wgpu-native.BufferBinding

export interface BufferBinding {
  /**
   * The buffer resource.
   */
  buffer: WGPUBuffer;

  /**
   * Byte offset within the buffer.
   * Default: 0
   */
  offset?: number;

  /**
   * Number of bytes to bind (default: from offset to end of buffer).
   */
  size?: number;
}
buffer(WGPUBuffer)
– The buffer resource.
offset(number)optional
– Byte offset within the buffer. Default: 0
size(number)optional
– Number of bytes to bind (default: from offset to end of buffer).

Buffer resource binding.

Describes how a buffer is bound to a bind group.

Previous
BindGroupEntry
Next
BufferDescriptor