And one case of adjusted error message too.
#pragma MSP stage(geometry)
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
in Output
{
vec2 texcoord;
#pragma MSP stage(geometry)
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
void main()
{
passthrough[0];
/* Expected output: geometry
uniform bool flag;
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
in vec2 texcoord[];
out vec2 _gs_out_texcoord;
void main()
#pragma MSP stage(geometry)
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
out GeometryOut
{
vec2 texcoord;
/* Expected output: geometry
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
out GeometryOut
{
vec2 texcoord;
#pragma MSP stage(geometry)
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
void main()
{
for(int i=0; i<3; ++i)
/* Expected output: geometry
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
in vec2 texcoord[];
out vec2 _gs_out_texcoord;
void main()
#pragma MSP stage(geometry)
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
void main()
{
for(int i=0; i<3; ++i)
/* Expected output: geometry
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
in vec2 _vs_out_texcoord[];
out vec2 _gs_out_texcoord;
void main()
#pragma MSP stage(geometry)
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
void main()
{
passthrough[0];
/* Expected output: geometry
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
in vec2 texcoord[];
out vec2 _gs_out_texcoord;
void main()
struct LightParams
{
- uniform vec3 ambient;
- uniform vec3 color;
- uniform float intensity;
- uniform vec3 dir;
+ vec3 ambient;
+ vec3 color;
+ float intensity;
+ vec3 dir;
};
uniform LightParams light;
uniform vec3 material_color;
/* Expected output: fragment
struct LightParams
{
- uniform vec3 ambient;
- uniform vec3 color;
- uniform float intensity;
- uniform vec3 dir;
+ vec3 ambient;
+ vec3 color;
+ float intensity;
+ vec3 dir;
};
uniform LightParams light;
uniform vec3 material_color;
#pragma MSP stage(geometry)
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
void main()
{
for(int i=0; i<3; ++i)
/* Expected output: geometry
layout(triangles) in;
-layout(triangles, max_vertices=3) out;
+layout(triangle_strip, max_vertices=3) out;
void main()
{
for(int i = 0; i<3; ++i)
void main() { }
/* Expected error:
-<test>:4: Struct members can't have initializers
+<test>:4: Initializer not allowed on struct member
*/