DrawProceduralIndirect

Can someone please confirm that the 2nd version of DrawProceduralIndirect (the second one listed on this page here : Unity - Scripting API: Graphics.DrawProceduralIndirect) maps to the following functions :

Metal : drawIndexedPrimitives(type:indexType:indexBuffer:indexBufferOffset:indirectBuffer:indirectBufferOffset:) | Apple Developer Documentation
OpenGL ES : glDrawElementsIndirect - OpenGL ES 3.1 Reference Pages

It’s the non-indexed version, so it maps to DrawArraysIndirect in GL and drawPrimitives in Metal.

The docs say it is indexed

7252214--874145--Screen Shot 2021-06-19 at 1.43.36 AM.png

Ah, indeed :slight_smile:
The one that takes an index buffer ends up calling those two functions that you linked to in the first post.

1 Like

thanks :slight_smile: