Skip to main content
9 votes

What's the difference between CUDA and Shader?

In opposite to Shaders, CUDA is not restricted to a specific step of the rendering pipeline. It can be used to do calculations that are best suited for the GPU architecture, allowing people to take ...
Hatoru Hansou's user avatar
4 votes
Accepted

How can I write a D3D12 texture in cuda?

When creating the resources, one can export and map the texture resource to a cuda surface, subsequently available for direct read and write. The export and map needs only to happen once. The key ...
Soleil's user avatar
  • 210
3 votes

Is OpenGL Shader a CUDA kernel?

No. OpenGL and CUDA are both frameworks providing APIs that give a standardized way to program GPUs to perform various tasks. I say "framework" and not just "API" because they ...
DMGregory's user avatar
  • 136k
3 votes

Why do we use GLSL(Shader) instead of CUDA?

The intuition that CUDA is objectively "better than" dedicated rendering APIs for common rendering workloads is not a good guide. These are not two competing software libraries that serve ...
DMGregory's user avatar
  • 136k
3 votes

What's the difference between CUDA and Shader?

Shaders are typically referenced in the context of a graphics API, like OpenGL or Direct3D. They originated as small program that allowed tweaking the lighting calculations for a surfade, aka "shading"...
Sean Middleditch's user avatar
1 vote

Is it possible to achieve the same performance of CUDA on OpenCL?

It's performance vs. compatibility. CUDA only works on "CUDA enabled" graphics cards. That means CUDA code can be sure that certain hardware features are present and can get more out of the GPU. ...
Raphael Schmitz's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible