mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-04 09:24:04 +00:00
c999ba2816
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23961 e7fa87d3-cd2b-0410-9028-fcbf551c1848
47 lines
707 B
GLSL
47 lines
707 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
|
|
|
|
#extension GL_ARB_texture_gather : warn
|
|
|
|
void bar2()
|
|
{
|
|
vec4 s = textureGather(sampC, vec3(0.2));
|
|
}
|