summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/profiles
diff options
context:
space:
mode:
authorBryan Cain <[email protected]>2013-02-15 08:53:20 -0600
committerPaul Berry <[email protected]>2013-08-01 20:20:36 -0700
commitff523771833cf2cfb6d69d61e86a28c26b8400be (patch)
tree8c5bbbcfa2552eed7a4d74ff34f174c623453d0d /src/glsl/builtins/profiles
parentae6eba3e32a142665d2ae6e15c9122d3201c0b5d (diff)
glsl: add builtins for geometry shaders.
v2 (Paul Berry <[email protected]>): Account for rework of builtin_variables.cpp. Use INTERP_QUALIFIER_FLAT for gl_PrimitiveID so that it will obey provoking vertex conventions. Convert to GLSL 1.50 style geometry shaders. Reviewed-by: Ian Romanick <[email protected]> v3 (Paul Berry <[email protected]>): Be less obscure about setting interpolation field of gl_Primitive variables. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/builtins/profiles')
-rw-r--r--src/glsl/builtins/profiles/150.geom3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/builtins/profiles/150.geom b/src/glsl/builtins/profiles/150.geom
new file mode 100644
index 00000000000..d2ab89113c4
--- /dev/null
+++ b/src/glsl/builtins/profiles/150.geom
@@ -0,0 +1,3 @@
+#version 150
+void EmitVertex();
+void EndPrimitive();