Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/daybreak/src/wgpu/objects.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/objects.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