X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=tests%2Fglsl%2Fgeometry_passthrough.glsl;h=2104280a102496c1c4b5fe0a214c1c4ebf636d26;hb=7efe2d35f5d53c0f086a1b85b7d3dea6a6c709ab;hp=200435895812d1248c2677f462eb60f459147c8f;hpb=6ba314198dce795408690456fa1f0ef559aa1532;p=libs%2Fgl.git diff --git a/tests/glsl/geometry_passthrough.glsl b/tests/glsl/geometry_passthrough.glsl index 20043589..2104280a 100644 --- a/tests/glsl/geometry_passthrough.glsl +++ b/tests/glsl/geometry_passthrough.glsl @@ -10,7 +10,7 @@ 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) @@ -27,9 +27,11 @@ void main() frag_color = texture(tex, texcoord); } +// Target API: Vulkan + /* Expected output: vertex layout(location=0) in vec4 position; -out vec2 texcoord; +layout(location=0) out vec2 texcoord; void main() { texcoord = position.xy*0.5+0.5; @@ -39,9 +41,9 @@ void main() /* Expected output: geometry layout(triangles) in; -layout(triangles, max_vertices=3) out; -in vec2 texcoord[]; -out vec2 _gs_out_texcoord; +layout(triangle_strip, max_vertices=3) out; +layout(location=0) in vec2 texcoord[3]; +layout(location=0) out vec2 _gs_out_texcoord; void main() { for(int i = 0; i<3; ++i) @@ -54,9 +56,9 @@ void main() */ /* Expected output: fragment -uniform sampler2D tex; +layout(set=0, binding=71) uniform sampler2D tex; layout(location=0) out vec4 frag_color; -in vec2 _gs_out_texcoord; +layout(location=0) in vec2 _gs_out_texcoord; void main() { frag_color = texture(tex, _gs_out_texcoord);