Cudabindtexturetoarray deprecated

Can someone please tell me how can I replace cudabindtexturetoarray which is now deprecated I don’t see an alternative in the latest CUDA docs. Want to map an OpenGL texture and use it in a CUDA kernel.