Hi,
Please check this:
CSI data capture on GPU - #5 by DaneLLL
Once you have RAW data in CUDA buffers, you can create NvBuffer and debayer/convert RAW data into the NvBuffer. It does not support RAW formats in NvBuffer so you would need to do debayering and conversion.
May consider Argus to use hardware ISP engine.