| // 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 GPUCommandEncoder { |
| [RaisesException] GPURenderPassEncoder beginRenderPass(GPURenderPassDescriptor descriptor); |
| GPUComputePassEncoder beginComputePass(optional GPUComputePassDescriptor descriptor = {}); |
| |
| void copyBufferToBuffer( |
| GPUBuffer src, |
| GPUSize64 srcOffset, |
| GPUBuffer dst, |
| GPUSize64 dstOffset, |
| GPUSize64 size); |
| |
| void copyBufferToTexture( |
| GPUImageCopyBuffer source, |
| GPUImageCopyTexture destination, |
| GPUExtent3D copySize); |
| |
| void copyTextureToBuffer( |
| GPUImageCopyTexture source, |
| GPUImageCopyBuffer destination, |
| GPUExtent3D copySize); |
| |
| void copyTextureToTexture( |
| GPUImageCopyTexture source, |
| GPUImageCopyTexture destination, |
| GPUExtent3D copySize); |
| |
| void pushDebugGroup(USVString groupLabel); |
| void popDebugGroup(); |
| void insertDebugMarker(USVString markerLabel); |
| |
| void resolveQuerySet( |
| GPUQuerySet querySet, |
| GPUSize32 firstQuery, |
| GPUSize32 queryCount, |
| GPUBuffer destination, |
| GPUSize64 destinationOffset); |
| |
| void writeTimestamp(GPUQuerySet querySet, GPUSize32 queryIndex); |
| |
| GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {}); |
| }; |
| GPUCommandEncoder includes GPUObjectBase; |