finish

fun finish(descriptor: GPUCommandBufferDescriptor = definedExternally): GPUCommandBuffer(source)

The finish() method of the GPUCommandEncoder interface completes recording of the command sequence encoded on this GPUCommandEncoder, returning a corresponding GPUCommandBuffer.

MDN Reference