OpenGL vs. OpenCL, which to choose and why?

后端 未结 10 1636
长发绾君心
长发绾君心 2021-01-29 19:46

What features make OpenCL unique to choose over OpenGL with GLSL for calculations? Despite the graphic related terminology and inpractical datatypes, is there any real caveat to

10条回答
  •  无人及你
    2021-01-29 20:04

    The "feature" that OpenCL is designed for general-purpose computation, while OpenGL is for graphics. You can do anything in GL (it is Turing-complete) but then you are driving in a nail using the handle of the screwdriver as a hammer.

    Also, OpenCL can run not just on GPUs, but also on CPUs and various dedicated accelerators.

提交回复
热议问题