bgfx/3rdparty/glslang/Test/spv.150.vert
Branimir Karadžić f46d6a5803 Added glslang.
2016-12-15 14:19:54 -08:00

39 lines
545 B
GLSL

#version 150 core
in vec4 iv4;
in float ps;
in int ui;
uniform sampler2D s2D;
invariant gl_Position;
struct s1 {
int a;
int a2;
vec4 b[3];
};
struct s2 {
int c;
s1 d[4];
};
out s2 s2out;
void main()
{
gl_Position = iv4;
gl_PointSize = ps;
gl_ClipDistance[2] = iv4.x;
int i;
s2out.d[i].b[2].w = ps;
// test non-implicit lod
texture(s2D, vec2(0.5));
textureProj(s2D, vec3(0.5));
textureLod(s2D, vec2(0.5), 3.2);
}
out float gl_ClipDistance[4];