GPURenderPassEncoder
class GPURenderPassEncoder
implements GPUObjectBase, GPUProgrammablePassEncoder, GPURenderEncoderBase {
label: string | null;
beginOcclusionQuery(queryIndex: number): undefined;
beginPipelineStatisticsQuery(
querySet: GPUQuerySet, 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;
endOcclusionQuery(): undefined;
endPass(): undefined;
endPipelineStatisticsQuery(): undefined;
insertDebugMarker(markerLabel: string): undefined;
popDebugGroup(): undefined;
pushDebugGroup(groupLabel: string): undefined;
setBindGroup(
index: number,
dynamicOffsets?: number[],
)
: undefined;
setBindGroup(
index: number,
dynamicOffsetsData: Uint32Array,
dynamicOffsetsDataStart: number,
dynamicOffsetsDataLength: number,
)
: undefined;
setBlendConstant(
color: GPUColor)
: undefined;
setIndexBuffer(
offset?: number,
size?: number,
)
: undefined;
setScissorRect(
x: number,
y: number,
width: number,
height: number,
)
: undefined;
setStencilReference(reference: number): undefined;
setVertexBuffer(
slot: number,
offset?: number,
size?: number,
)
: undefined;
setViewport(
x: number,
y: number,
width: number,
height: number,
minDepth: number,
maxDepth: number,
)
: undefined;
writeTimestamp(
querySet: GPUQuerySet, queryIndex: number)
: undefined;
}
Properties
Methods
beginOcclusionQuery(queryIndex: number): undefined
beginPipelineStatisticsQuery(
querySet: GPUQuerySet, 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
endOcclusionQuery(): undefined
endPipelineStatisticsQuery(): 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
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
writeTimestamp(
querySet: GPUQuerySet, queryIndex: number)
: undefined