mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-25 04:09:41 +00:00
1fbc6e6ca1
Added version check (version >= 150) for GL_(core/compatibility)_profile macros. Added GL_core_profile standard macro check to "150.vert" test file. Fixed version check for GL_core_profile macros, and removed bad token character from 150.vert test. Updated 150.vert.out test base-result with google-test suite.
30 lines
470 B
GLSL
30 lines
470 B
GLSL
#version 150 core
|
|
|
|
#ifndef GL_core_profile
|
|
# error standard macro GL_core_profile not defined
|
|
#endif
|
|
|
|
in vec4 iv4;
|
|
|
|
uniform float ps;
|
|
|
|
invariant gl_Position;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = iv4;
|
|
gl_PointSize = ps;
|
|
gl_ClipDistance[2] = iv4.x;
|
|
gl_ClipVertex = iv4;
|
|
}
|
|
|
|
out float gl_ClipDistance[4];
|
|
|
|
uniform foob {
|
|
int a[];
|
|
};
|
|
int a[5]; // ERROR, resizing user-block member
|
|
|
|
#line 3000
|
|
#error line of this error should be 3001
|