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

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

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

Constructors

new
WGPURenderBundleEncoder(ptr: Deno.UnsafePointer)

Methods

draw(
vertexCount: number,
instanceCount: number,
firstVertex: number,
firstInstance: number,
): void
drawIndexed(
indexCount: number,
instanceCount: number,
firstIndex: number,
baseVertex: number,
firstInstance: number,
): void
drawIndexedIndirect(indirectBuffer: wgpu.WGPUBuffer, indirectOffset: number): void
drawIndirect(indirectBuffer: wgpu.WGPUBuffer, indirectOffset: number): void
finish(descriptor: wgpu.WGPURenderBundleDescriptor): wgpu.WGPURenderBundle
insertDebugMarker(markerLabel: string): void
pushDebugGroup(groupLabel: string): void
setBindGroup(
groupIndex: number,
group: wgpu.WGPUBindGroup,
dynamicOffsetCount: number,
dynamicOffsets: Uint32Array,
): void
setIndexBuffer(
buffer: wgpu.WGPUBuffer,
format: wgpu.WGPUIndexFormat,
offset: number,
size: number,
): void
setLabel(label: string): void
setPipeline(pipeline: wgpu.WGPURenderPipeline): void
setVertexBuffer(
slot: number,
buffer: wgpu.WGPUBuffer,
offset: number,
size: number,
): void