Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno_webgpu.d.ts>GPUCommandEncoder

A modern runtime for JavaScript and TypeScript.
Latest
class GPUCommandEncoder
implements GPUObjectBase
import { GPUCommandEncoder } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno_webgpu.d.ts";

Properties

label: string

Methods

clearBuffer(
destination: GPUBuffer,
destinationOffset?: number,
size?: number,
): undefined
copyBufferToBuffer(
source: GPUBuffer,
sourceOffset: number,
destination: GPUBuffer,
destinationOffset: number,
size: number,
): undefined
copyBufferToTexture(
destination: GPUImageCopyTexture,
copySize: GPUExtent3D,
): undefined
copyTextureToBuffer(
destination: GPUImageCopyBuffer,
copySize: GPUExtent3D,
): undefined
copyTextureToTexture(
destination: GPUImageCopyTexture,
copySize: GPUExtent3D,
): undefined
insertDebugMarker(markerLabel: string): undefined
popDebugGroup(): undefined
pushDebugGroup(groupLabel: string): undefined
resolveQuerySet(
querySet: GPUQuerySet,
firstQuery: number,
queryCount: number,
destination: GPUBuffer,
destinationOffset: number,
): undefined
writeTimestamp(querySet: GPUQuerySet, queryIndex: number): undefined