| // 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 GPURenderPassEncoder { |
| void setViewport(float x, float y, |
| float width, float height, |
| float minDepth, float maxDepth); |
| |
| void setScissorRect(GPUIntegerCoordinate x, GPUIntegerCoordinate y, |
| GPUIntegerCoordinate width, GPUIntegerCoordinate height); |
| |
| [RaisesException] void setBlendColor(GPUColor color); |
| void setStencilReference(GPUStencilValue reference); |
| |
| void executeBundles(sequence<GPURenderBundle> bundles); |
| void beginOcclusionQuery(GPUSize32 queryIndex); |
| void endOcclusionQuery(); |
| void writeTimestamp(GPUQuerySet querySet, GPUSize32 queryIndex); |
| void endPass(); |
| }; |
| GPURenderPassEncoder includes GPUObjectBase; |
| GPURenderPassEncoder includes GPUProgrammablePassEncoder; |
| GPURenderPassEncoder includes GPURenderEncoderBase; |