What is the point of GLSL when there is OpenCL?

j r*_*riv 23 opengl graphics gpgpu glsl opencl

Consider this the complete form of the question in the title: Since OpenCL may be the common standard for serious GPU programming in the future (among other devices programming), why not when programming for OpenGL - in a future-proof way - utilize all GPU operations on OpenCL? That way you get the advantages of GLSL, without its programmatic limitations.

Ree*_*sey 19

GLSL是OpenGL 着色语言.最初旨在用于控制图形管线.

另一方面,OpenCL是开放计算语言.它不控制图形,而是控制计算.

这两种技术的目标是不同的功能和功能.

话虽如此,向前推进,他们可能没有理由将GLSL用于计算目的.但是,截至今天,更多的供应商完全支持GLSL而不是OpenCL,所以它仍然有用于计算目的,即使它是有限的,因为这不是它的核心目的,至少现在.

  • 是的,我的意思是不考虑GLSL和OpenCL目标的陈述目的,OpenCL似乎在更强大的界面中提供了GLSL的优势.是否存在OpenCL无法做到的事情,而且OpenSL会以更坏的方式做些什么呢? (2认同)