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

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

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

Constructors

new
WGPURenderPassEncoder(ptr: Deno.UnsafePointer)

Methods

beginOcclusionQuery(queryIndex: number): void
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
end(): void
endPass(): void
executeBundles(bundlesCount: number, bundles: wgpu.WGPURenderBundle[]): void
insertDebugMarker(markerLabel: any): void
pushDebugGroup(groupLabel: any): void
setBindGroup(
groupIndex: number,
group: wgpu.WGPUBindGroup,
dynamicOffsetCount: number,
dynamicOffsets: Uint32Array,
): void
setBlendConstant(color: wgpu.WGPUColor): void
setIndexBuffer(
buffer: wgpu.WGPUBuffer,
format: wgpu.WGPUIndexFormat,
offset: number,
size: number,
): void
setLabel(label: any): void
setPipeline(pipeline: wgpu.WGPURenderPipeline): void
setScissorRect(
x: number,
y: number,
width: number,
height: number,
): void
setStencilReference(reference: number): void
setVertexBuffer(
slot: number,
buffer: wgpu.WGPUBuffer,
offset: number,
size: number,
): void
setViewport(
x: number,
y: number,
width: number,
height: number,
minDepth: number,
maxDepth: number,
): void
writeTimestamp(querySet: wgpu.WGPUQuerySet, queryIndex: number): void