A helper class for compute passes

Constructors

  • Parameters

    • pipeline: GPUComputePipeline
    • bindGroups: GPUBindGroup[]
    • dispatchDimensions: [number, number, number]

    Returns ComputePass

Properties

bindGroups: GPUBindGroup[]
dispatchDimensions: [number, number, number]
pipeline: GPUComputePipeline

Methods

  • Parameters

    • computePassEncoder: GPUComputePassEncoder
    • resetBindGroups: boolean = false

    Returns void

  • Parameters

    • index: number
    • bindGroup: GPUBindGroup

    Returns void

  • Parameters

    • dispatchDimensions: [number, number, number]

    Returns void