Skip to main content
GPURenderEncoderBase - GPU - Web documentation
interface GPURenderEncoderBase
Unstable

Methods

setPipeline(pipeline: GPURenderPipeline): undefined
setIndexBuffer(
buffer: GPUBuffer,
indexFormat: GPUIndexFormat,
offset?: number,
size?: number,
): undefined
setVertexBuffer(
slot: number,
buffer: GPUBuffer,
offset?: number,
size?: number,
): undefined
draw(
vertexCount: number,
instanceCount?: number,
firstVertex?: number,
firstInstance?: number,
): undefined
drawIndexed(
indexCount: number,
instanceCount?: number,
firstIndex?: number,
baseVertex?: number,
firstInstance?: number,
): undefined
drawIndirect(
indirectBuffer: GPUBuffer,
indirectOffset: number,
): undefined
drawIndexedIndirect(
indirectBuffer: GPUBuffer,
indirectOffset: number,
): undefined