Mac OS 10.8是否支持GLSL 3.30? [英] Mac OS 10.8 supports GLSL 3.30?

查看:72
本文介绍了Mac OS 10.8是否支持GLSL 3.30?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用10.8 Mountain Lion遵循OpenGL 3.3上的arcsynthesis教程,并在构建项目时使用GLSL 3.30版编译和运行着色器,但是即使在Mac OS 10.8的核心配置文件中,我也不应该拥有GLSL 3.30支持-仅1.50(如图中突出显示)

I'm following the arcsynthesis tutorials on OpenGL 3.3 using 10.8 Mountain Lion and when building the project it compiles and runs the shaders using GLSL version 3.30, however even in the core profile on Mac OS 10.8 I shouldn't have GLSL 3.30 support - only 1.50 (as highlighted in the picture)

有人能解释我是如何实现这种黑魔法的吗?

Is anybody able to explain how I have managed to achieve this black magic?

推荐答案

OS X 10.8仍仅支持OpenGL 3.2,但具有某些3.3功能,例如指定属性位置(#extension GL_ARB_explicit_attrib_location : enable).着色器编译器接受的版本不超过4.10.他们可能出于兼容性考虑或出于最初打算支持4.1的目的(SPECULATION)而将其保留在那里.

OS X 10.8 still only support OpenGL 3.2, but with some 3.3 features such as specifying attribute location (#extension GL_ARB_explicit_attrib_location : enable). The shader compiler accepts versions up to 4.10. They might have left it there for compatibility or (SPECULATION) they originally intended to support 4.1.

这至少是我在10.8几周后得出的结论.

This is at least my conclusion after a few weeks with 10.8.

看起来像是4.10的猜测. 10.9-10.12最多支持4.10版本.我想他们想在Metal api上花费资源,而不是继续前进并获得计算着色器.

Looks like the 4.10 speculations were spot on. 10.9-10.12 support up to version 4.10. I guess they wanted to spend resources on their Metal api rather than moving forward and get compute shaders in..

这篇关于Mac OS 10.8是否支持GLSL 3.30?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆