Usage of Indirect Command Buffer in swift

Indirect Command Buffers can be useful for repetitive commands where only the input buffers/Textures may be changing (correct this if wrong!).

Apple documentation (https://developer.apple.com/documentation/metal/indirect_command_buffers/encoding_indirect_command_buffers_on_the_cpu) has only given the example for objective-c and not for the Swift!

Can anyone point to to any example or tutorial of using ICB from Swift environment?

Usage of Indirect Command Buffer in swift
 
 
Q