mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-25 04:09:41 +00:00
f856599601
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@27545 e7fa87d3-cd2b-0410-9028-fcbf551c1848
41 lines
645 B
GLSL
41 lines
645 B
GLSL
#version 140
|
|
|
|
varying vec4 v;
|
|
|
|
in vec4 i;
|
|
out vec4 o;
|
|
|
|
in float gl_ClipDistance[5];
|
|
|
|
void main()
|
|
{
|
|
float clip = gl_ClipDistance[2];
|
|
}
|
|
#ifdef GL_ES
|
|
#error GL_ES is set
|
|
#else
|
|
#error GL_ES is not set
|
|
#endif
|
|
|
|
in struct S { float f; } s; // ERROR
|
|
|
|
float patch = 3.1;
|
|
|
|
layout(location=3) in vec4 vl; // ERROR
|
|
|
|
layout(location = 3) out vec4 factorBad; // ERROR
|
|
|
|
#extension GL_ARB_explicit_attrib_location : enable
|
|
|
|
layout(location = 5) out vec4 factor;
|
|
|
|
#extension GL_ARB_separate_shader_objects : enable
|
|
|
|
layout(location=4) in vec4 vl2;
|
|
|
|
void foo()
|
|
{
|
|
vec2 r1 = modf(v.xy, v.zw); // ERROR, v.zw not l-value
|
|
vec2 r2 = modf(o.xy, o.zw);
|
|
}
|