@@ -2575,10 +2575,12 @@ interface mixin GPURenderEncoderBase {
2575
2575
void setIndexBuffer(GPUBuffer buffer, optional GPUSize64 offset = 0, optional GPUSize64 size = 0);
2576
2576
void setVertexBuffer(GPUIndex32 slot, GPUBuffer buffer, optional GPUSize64 offset = 0, optional GPUSize64 size = 0);
2577
2577
2578
- void draw(GPUSize32 vertexCount, GPUSize32 instanceCount,
2579
- GPUSize32 firstVertex, GPUSize32 firstInstance);
2580
- void drawIndexed(GPUSize32 indexCount, GPUSize32 instanceCount,
2581
- GPUSize32 firstIndex, GPUSignedOffset32 baseVertex, GPUSize32 firstInstance);
2578
+ void draw(GPUSize32 vertexCount, optional GPUSize32 instanceCount = 1,
2579
+ optional GPUSize32 firstVertex = 0, optional GPUSize32 firstInstance = 0);
2580
+ void drawIndexed(GPUSize32 indexCount, optional GPUSize32 instanceCount = 1,
2581
+ optional GPUSize32 firstIndex = 0,
2582
+ optional GPUSignedOffset32 baseVertex = 0,
2583
+ optional GPUSize32 firstInstance = 0);
2582
2584
2583
2585
void drawIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
2584
2586
void drawIndexedIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
0 commit comments