How to get the framebuffer in the video memory

I have a NVIDIA geforce gtx 1070.Now I want to get the framebuffer in the video memory, whether CUDA can make this? I cannot find any CUDA sample can do this,anybody can give me some advices?NVIDIA capture sdk can do this ,but it cannot support geforce.

I believe you are asking functionality similar to Capture SDK (NVFBC and NVIFR) on GTX 1070. If so, that is not available. You can use Microsoft DX11 APIs for this purpose on GeForce, if they suit your requirement.