Plan to get Apple Metal command buffer or register completed handler?

Hi,

I am writing an application that uses Dear ImGui. It comes with an Apple Metal implementation that uses the MTLCommandBuffer’s addCompletedHandler to handle re-queuing of reusable vertex and index buffers.

Unfortunately, it seems that the SDL renderer only exposes the command encoder object, but not the command buffer. Is there any plan to either expose the command buffer or have a way to add a completed handler to the renderer’s internal command buffer?

I think I just might modify SDL to add a way to register a completed handler to the command buffer. Just as a note, I am fairly new to Metal so maybe there is something obvious I am missing in order to do this.

Thanks!