You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExecuteIndirect & vkCmdDrawIndirectCount both support taking in a buffer as an argument for draw counts. However, this is not implemented, and as a result, the user will be forced to always provide conservative values for the 'drawCount' argument for indirect draw commands.
In addition, it seems like both RenderDoc & PIX doesn't really like to replay empty indirect draw calls, as they will release the graphic driver & unload the reply when attempted to reply indirect commands, at least on my machine. Without a buffer for draw counts, empty indirect draw calls are common when any sort of GPU culling is implemented.
I have modified nvrhi files in my own private repo to support draw count buffer for d3d12 and it has resolved the issue with RenderDoc. I'm not exactly sure what's the underlying low level API issue regarding RenderDoc & empty indirect draw calls, but the issue went away. Admittedly, compacting my indirect buffers to discard empty draw arguments would also likely solve this issue.
Nonetheless, officially supporting draw count buffers for indirect commands in this library would be beneficial.
The text was updated successfully, but these errors were encountered:
ExecuteIndirect & vkCmdDrawIndirectCount both support taking in a buffer as an argument for draw counts. However, this is not implemented, and as a result, the user will be forced to always provide conservative values for the 'drawCount' argument for indirect draw commands.
In addition, it seems like both RenderDoc & PIX doesn't really like to replay empty indirect draw calls, as they will release the graphic driver & unload the reply when attempted to reply indirect commands, at least on my machine. Without a buffer for draw counts, empty indirect draw calls are common when any sort of GPU culling is implemented.
I have modified nvrhi files in my own private repo to support draw count buffer for d3d12 and it has resolved the issue with RenderDoc. I'm not exactly sure what's the underlying low level API issue regarding RenderDoc & empty indirect draw calls, but the issue went away. Admittedly, compacting my indirect buffers to discard empty draw arguments would also likely solve this issue.
Nonetheless, officially supporting draw count buffers for indirect commands in this library would be beneficial.
The text was updated successfully, but these errors were encountered: