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

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

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

Properties

label: string

Methods

beginOcclusionQuery(queryIndex: number): undefined
draw(
vertexCount: number,
instanceCount?: number,
firstVertex?: number,
firstInstance?: number,
): undefined
drawIndexed(
indexCount: number,
instanceCount?: number,
firstIndex?: number,
baseVertex?: number,
firstInstance?: number,
): undefined
drawIndexedIndirect(indirectBuffer: GPUBuffer, indirectOffset: number): undefined
drawIndirect(indirectBuffer: GPUBuffer, indirectOffset: number): undefined
end(): undefined
endOcclusionQuery(): undefined
executeBundles(bundles: GPURenderBundle[]): undefined
insertDebugMarker(markerLabel: string): undefined
popDebugGroup(): undefined
pushDebugGroup(groupLabel: string): undefined
setBindGroup(
index: number,
bindGroup: GPUBindGroup,
dynamicOffsets?: number[],
): undefined
setBindGroup(
index: number,
bindGroup: GPUBindGroup,
dynamicOffsetsData: Uint32Array,
dynamicOffsetsDataStart: number,
dynamicOffsetsDataLength: number,
): undefined
setBlendConstant(color: GPUColor): undefined
setIndexBuffer(
buffer: GPUBuffer,
indexFormat: GPUIndexFormat,
offset?: number,
size?: number,
): undefined
setPipeline(pipeline: GPURenderPipeline): undefined
setScissorRect(
x: number,
y: number,
width: number,
height: number,
): undefined
setStencilReference(reference: number): undefined
setVertexBuffer(
slot: number,
buffer: GPUBuffer,
offset?: number,
size?: number,
): undefined
setViewport(
x: number,
y: number,
width: number,
height: number,
minDepth: number,
maxDepth: number,
): undefined