mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-12 13:26:12 +00:00
8ec55cdcd2
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23874 e7fa87d3-cd2b-0410-9028-fcbf551c1848
40 lines
603 B
GLSL
40 lines
603 B
GLSL
#version 130
|
|
|
|
lowp vec3 a;
|
|
mediump float b;
|
|
highp int c;
|
|
|
|
precision highp float;
|
|
|
|
in vec4 i;
|
|
out vec4 o;
|
|
|
|
flat in float fflat;
|
|
smooth in float fsmooth;
|
|
noperspective in float fnop;
|
|
|
|
void main()
|
|
{
|
|
float clip = gl_ClipDistance[3];
|
|
}
|
|
|
|
uniform samplerCube sampC;
|
|
|
|
void foo()
|
|
{
|
|
vec4 s = textureGather(sampC, vec3(0.2));
|
|
}
|
|
|
|
#extension GL_ARB_texture_gather : enable
|
|
|
|
void bar()
|
|
{
|
|
vec4 s = textureGather(sampC, vec3(0.2));
|
|
}
|
|
|
|
flat in vec3 gl_Color; // ERROR, type
|
|
in vec4 gl_Color;
|
|
flat in vec4 gl_Color;
|
|
flat in vec4 gl_Color[2]; // ERROR, array
|
|
vec4 gl_Color; // ERROR, storage
|