GPURenderEncoderBase
interface GPURenderEncoderBase {
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;
setIndexBuffer(
offset?: number,
size?: number,
)
: undefined;
setVertexBuffer(
slot: number,
offset?: number,
size?: number,
)
: undefined;
}
Methods
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
setIndexBuffer(
offset?: number,
size?: number,
)
: undefined
setVertexBuffer(
slot: number,
offset?: number,
size?: number,
)
: undefined