blob: dd75cea414bb7c9dc36be9871ea7f098e56592ea [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://gpuweb.github.io/gpuweb/
[
RuntimeEnabled=WebGPU
] interface GPUComputePassEncoder {
void setPipeline(GPUComputePipeline pipeline);
void dispatch(unsigned long x,
optional unsigned long y = 1,
optional unsigned long z = 1);
void dispatchIndirect(GPUBuffer indirectBuffer,
GPUBufferSize indirectOffset);
void endPass();
};
GPUComputePassEncoder includes GPUProgrammablePassEncoder;