Hi, I am writing a program to do a processing in CUDA with a D3D buffer.
But when I try to call cuD3D9MapResources() to map a D3D surface, it will always return CUDA_ERROR_INVALID_CONTEXT.
Does there has any function need to be called before cuD3D9MapResources()?
Or should I check if the surface can be used before calling cuD3D9MapResources()?
Thank you guys for your time.