Skip to content

ComputePass

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/webgpu/compute/ComputePass.ts for the most up-to-date information.

Overview

TODO: doc

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class ComputePass

import { ComputePass } from 'scenerystack/alpenglow';

Constructor

new ComputePass( encoder : GPUCommandEncoder, computePassDescriptor : GPUComputePassDescriptor )

Instance Methods

dispatchPipeline( computePipeline : ComputePipeline, bindGroups : BindGroup[], dispatchX, dispatchY, dispatchZ ) : this

dispatchPipelineIndirect( computePipeline : ComputePipeline, bindGroups : BindGroup[], indirectBuffer : GPUBuffer, indirectOffset : number ) : this

end()

Instance Properties

id

(readonly)

computePassEncoder : GPUComputePassEncoder

(readonly)

Source Code

See the source for ComputePass.ts in the alpenglow repository.