Add multi draw indirect feature by rconde01 · Pull Request #2315 · gpuweb/gpuweb
To answer this old question I think we should make it optional and not nullable. That should still allow null.
pass.multiDrawIndirect(indirectBuffer, 0, 100); pass.multiDrawIndirect(indirectBuffer, 0, 100, null); pass.multiDrawIndirect(indirectBuffer, 0, 100, null, 0); pass.multiDrawIndirect(indirectBuffer, 0, 100, null, null); pass.multiDrawIndirect(indirectBuffer, 0, 100, undefined); pass.multiDrawIndirect(indirectBuffer, 0, 100, undefined, 0); pass.multiDrawIndirect(indirectBuffer, 0, 100, undefined, undefined);