beginComputePass

external fun beginComputePass(descriptor: GPUComputePassDescriptor = definedExternally): GPUComputePassEncoder(source)

The beginComputePass() method of the GPUCommandEncoder interface starts encoding a compute pass, returning a GPUComputePassEncoder that can be used to control computation.

MDN Reference