blob: 4a0d017bfd6d0adcf4fc5eb614b3352917aff894 [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/
[
Exposed(Window WebGPU, Worker WebGPU)
] interface GPUComputePassEncoder {
void setPipeline(GPUComputePipeline pipeline);
void dispatch(GPUSize32 x,
optional GPUSize32 y = 1,
optional GPUSize32 z = 1);
void dispatchIndirect(GPUBuffer indirectBuffer,
GPUSize64 indirectOffset);
void writeTimestamp(GPUQuerySet querySet, GPUSize32 queryIndex);
void endPass();
};
GPUComputePassEncoder includes GPUObjectBase;
GPUComputePassEncoder includes GPUProgrammablePassEncoder;