Class SPDPass

A compute pass for downsampling a texture.

Properties

Accessors

Methods

Properties

passes: SPDPassInner[]
target: GPUTexture

The texture the mipmaps will be written to by this SPDPass, once SPDPass.encode is called.

Accessors

  • get numPasses(): number
  • Returns the number of passes that will be encoded by calling this instance's SPDPass.encode method.

    Returns number

Methods

  • Encodes the configured mipmap generation pass(es) with the given GPUComputePassEncoder. All bind groups indices used by SPDPass are reset to null to prevent unintentional bindings of internal bind groups for subsequent pipelines encoded in the same GPUComputePassEncoder.

    Parameters

    • computePassEncoder: GPUComputePassEncoder

      The GPUComputePassEncoder to encode this mipmap generation pass with.

    Returns GPUComputePassEncoder

    The computePassEncoder