CUDA vs GLSL Rendering

Can CUDA use as a substitute for OpenGL, because both use gpu to calculate on screen graphic. If not why? I know OpenGL have GLM but that’s not the part I am worry about, I am worry about if CUDA will be slower than GLSL in terms of rendering

Hello @codingisfunandpainful and welcome to the NVIDIA developer forums!

CUDA is not a graphics library and does not actually calculate on screen graphics like OpenGL, it is rather a Compute platform. That means you are missing all of the primitives and convenience functions found in graphics stacks like OpenGL or DirectX or similar.

If you would create you own, proprietary rendering system based on CUDA you would need to implement everything from scratch that is needed in a modern Game Engine.

I hope that helps!