Interface RenderDrawOptions
interface RenderDrawOptions {
enabled?: boolean;
firstInstance?: number;
firstVertex?: number;
indexBuffer?: StorageBuffer;
indexFormat?: GPUIndexFormat;
instanceCount?: number;
vertexBuffers?: readonly StorageBuffer[];
vertexCount: number;
}
enabled?: boolean;
firstInstance?: number;
firstVertex?: number;
indexBuffer?: StorageBuffer;
indexFormat?: GPUIndexFormat;
instanceCount?: number;
vertexBuffers?: readonly StorageBuffer[];
vertexCount: number;
}
Properties
Optional Readonlyenabled
enabled?: boolean
Optional Readonlyfirst Instance
firstInstance?: number
Optional Readonlyfirst Vertex
firstVertex?: number
Optional Readonlyindex Buffer
An allocation created with index: true; switches the draw to drawIndexed.
Optional Readonlyindex Format
indexFormat?: GPUIndexFormat
Optional Readonlyinstance Count
instanceCount?: number
Optional Readonlyvertex Buffers
One allocation created with vertex: true per layout in RenderShaderOptions.vertexBuffers, in order.
Readonlyvertex Count
vertexCount: number
Vertices per instance, or indices per instance when indexBuffer is set.
Options for createRenderDraw.