KhronosGroup / glslang

Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.
Other
2.98k stars 823 forks source link

Forward-compatibility testing for deprecated features is not fleshed out #158

Open johnkslang opened 8 years ago

johnkslang commented 8 years ago

There is a forward compatibility mode for the front-end, which is should disallow use of deprecated features. However, it is not fully fleshed out.

AzP commented 8 years ago

I wrote "#version 330 core" in a whole bunch of my shaders, validated them and tested them on AMD hardware, and they ran fine. I then tested on Nvidia, and everything exploded since some of the shaders were really old and still contained gl_Vertex and gl_FragColor. The same with using the texture3D function. It seems glslangvalidator doesn't check for the use of deprecated features?