Need more samples

I know that there is a new upcoming NVIDIA VIDEO CODEC SDK and maybe that will address this missing piece.

We need a sample that creates a device array (CU_MEMORYTYPE_DEVICE), fills it via a CUDA kernel and sends this device array directly to the encoder.

There are no samples anywhere in NVidia or the Web that addresses this simple scenario.

Forget OpenGL, ffmpeg, DirectX or any other scenario. This is simply the CUDA 10.0 toolkit and NVENC (I am using TCC mode, so no graphics drivers). Because the Pascal cards supports both CUDA and NVENC in hardware, this should be simple!

Am I missing any samples that people know of?

Can anyone help in this regard?