Metal texture Direct Memory Access from Capture board.

I'm writing an application that uses Metal to paste and play multiple video images in real time in a specific area of ​​3D.

I would like to place multiple camcorder images captured from a Magewell capture board (Pro Capture DUAL HDMI 4K Plus LT) using a Mac Pro in the texture area of ​​the graphics board (AMD Radeon Pro Vega II 32GB) via PCIe.

However, it is taken into the area prepared on the CPU side (obtained by NsMutableData) and converted to Mipmap using [Texture replaceRegion:-], but it is not as fast as expected because it is 4K video.

Considering the processing speed, I would like to use an API (like DMA transfer to another rectangular area) that sends BGRA data directly to the texture area on the capture board side without going through the CPU. However, there is a problem transferring the address of the texture area of ​​the graphics board.

Is there a way to get the Mipmpa address of the texture on Mac, or is there a way to get the same effect using a different approach?

Metal texture Direct Memory Access from Capture board.
 
 
Q