mirror of
https://github.com/RPCS3/glslang.git
synced 2025-01-27 05:52:00 +00:00
Two missing test file sources.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@26230 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
263a134edd
commit
447c65c978
78
Test/130.vert
Normal file
78
Test/130.vert
Normal file
@ -0,0 +1,78 @@
|
||||
#version 130
|
||||
|
||||
uniform int c;
|
||||
uniform usampler2D us2D;
|
||||
|
||||
in ivec2 x;
|
||||
in vec2 v2a;
|
||||
in float c1D;
|
||||
in vec2 c2D;
|
||||
in vec3 c3D;
|
||||
smooth vec4 c4D; // ??
|
||||
|
||||
uniform vec4 v4;
|
||||
|
||||
void main()
|
||||
{
|
||||
float f = 3;
|
||||
switch (c) { // full switch testing in switch.frag
|
||||
case 1:
|
||||
f = sin(f);
|
||||
break;
|
||||
case 2:
|
||||
f = f * f;
|
||||
default:
|
||||
f = 3.0;
|
||||
}
|
||||
|
||||
uint i;
|
||||
i = texture(us2D, x).w; // full uint testing in uint.frag
|
||||
i << 3u | 0x8Au >> 1u & 0xFFu;
|
||||
|
||||
vec3 modfOut, modfIn;
|
||||
vec3 v11 = modf(modfIn, modfOut);
|
||||
float t = trunc(f);
|
||||
vec2 v12 = round(v2a);
|
||||
vec2 v13 = roundEven(v2a);
|
||||
bvec2 b10 = isnan(v2a);
|
||||
bvec4 b11 = isinf(v4);
|
||||
|
||||
sinh(c1D) +
|
||||
cosh(c1D) * tanh(c2D);
|
||||
asinh(c4D) + acosh(c4D);
|
||||
atanh(c3D);
|
||||
|
||||
int id = gl_VertexID;
|
||||
gl_ClipDistance[1] = 0.3;
|
||||
}
|
||||
|
||||
// version 140 features
|
||||
|
||||
//uniform isamplerBuffer sbuf;
|
||||
|
||||
//layout(std140) uniform blockName {
|
||||
// int anonMem;
|
||||
//};
|
||||
|
||||
void foo88()
|
||||
{
|
||||
int id = gl_InstanceID; // ERROR
|
||||
//id += anonMem;
|
||||
id += texelFetch(id, 8);
|
||||
|
||||
gl_ClipVertex; // these are all present...
|
||||
gl_Color;
|
||||
gl_LightSource[0];
|
||||
gl_DepthRange.far;
|
||||
gl_TexCoord;
|
||||
gl_FogFragCoord;
|
||||
gl_FrontColor;
|
||||
}
|
||||
|
||||
// token pasting
|
||||
|
||||
#define mac abc##def
|
||||
int mac;
|
||||
|
||||
#define macr(A,B) A##B
|
||||
int macr(qrs,tuv);
|
21
Test/140.vert
Normal file
21
Test/140.vert
Normal file
@ -0,0 +1,21 @@
|
||||
#version 140
|
||||
|
||||
uniform isamplerBuffer sbuf;
|
||||
|
||||
layout(std140) uniform blockName {
|
||||
int anonMem;
|
||||
};
|
||||
|
||||
void main()
|
||||
{
|
||||
int id = gl_InstanceID;
|
||||
id += anonMem;
|
||||
id += texelFetch(sbuf, 8).w;
|
||||
gl_ClipVertex; // could be ERROR, but compiling under compatibility profile
|
||||
gl_Color; // could be ERROR, but compiling under compatibility profile
|
||||
gl_LightSource[0]; // could be ERROR, but compiling under compatibility profile
|
||||
gl_DepthRange.far;
|
||||
gl_TexCoord; // could be ERROR, but compiling under compatibility profile
|
||||
gl_FogFragCoord; // could be ERROR, but compiling under compatibility profile
|
||||
gl_FrontColor; // could be ERROR, but compiling under compatibility profile
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user