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

x/daybreak/src/wgpu/mod.ts>WGPUCommandEncoder

[WIP] WebGPU API implementation for Deno, built using Dawn with FFI.
Latest
class WGPUCommandEncoder
import { WGPUCommandEncoder } from "https://deno.land/x/daybreak@0.1.2/src/wgpu/mod.ts";

Constructors

new
WGPUCommandEncoder(ptr: Deno.UnsafePointer)

Methods

beginComputePass(descriptor: wgpu.WGPUComputePassDescriptor): wgpu.WGPUComputePassEncoder
beginRenderPass(descriptor: wgpu.WGPURenderPassDescriptor): wgpu.WGPURenderPassEncoder
clearBuffer(
buffer: wgpu.WGPUBuffer,
offset: number,
size: number,
): void
copyBufferToBuffer(
source: wgpu.WGPUBuffer,
sourceOffset: number,
destination: wgpu.WGPUBuffer,
destinationOffset: number,
size: number,
): void
copyBufferToTexture(
source: wgpu.WGPUImageCopyBuffer,
destination: wgpu.WGPUImageCopyTexture,
copySize: wgpu.WGPUExtent3D,
): void
copyTextureToBuffer(
source: wgpu.WGPUImageCopyTexture,
destination: wgpu.WGPUImageCopyBuffer,
copySize: wgpu.WGPUExtent3D,
): void
copyTextureToTexture(
source: wgpu.WGPUImageCopyTexture,
destination: wgpu.WGPUImageCopyTexture,
copySize: wgpu.WGPUExtent3D,
): void
copyTextureToTextureInternal(
source: wgpu.WGPUImageCopyTexture,
destination: wgpu.WGPUImageCopyTexture,
copySize: wgpu.WGPUExtent3D,
): void
finish(descriptor: wgpu.WGPUCommandBufferDescriptor): wgpu.WGPUCommandBuffer
injectValidationError(message: string): void
insertDebugMarker(markerLabel: string): void
pushDebugGroup(groupLabel: string): void
resolveQuerySet(
querySet: wgpu.WGPUQuerySet,
firstQuery: number,
queryCount: number,
destination: wgpu.WGPUBuffer,
destinationOffset: number,
): void
setLabel(label: string): void
writeBuffer(
buffer: wgpu.WGPUBuffer,
bufferOffset: number,
data: Uint8Array,
size: number,
): void
writeTimestamp(querySet: wgpu.WGPUQuerySet, queryIndex: number): void