[Piglit] [PATCH] arb_explicit_uniform_location: test explicit location for a sampler

Tapani Pälli tapani.palli at intel.com
Thu Aug 21 22:04:20 PDT 2014


Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82921
---
 .../linker/set-location-to-sampler.shader_test     | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test

diff --git a/tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test b/tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test
new file mode 100644
index 0000000..c2716e3
--- /dev/null
+++ b/tests/spec/arb_explicit_uniform_location/linker/set-location-to-sampler.shader_test
@@ -0,0 +1,22 @@
+#
+# Tests that an opaque type (sampler) gets a location succesfully
+#
+[require]
+GL >= 3.3
+GLSL >= 3.30
+GL_ARB_explicit_uniform_location
+
+[vertex shader passthrough]
+
+[fragment shader]
+#version 330
+#extension GL_ARB_explicit_uniform_location: require
+layout(location = 0) uniform sampler2D tex;
+out vec4 color;
+void main()
+{
+	color = texture(tex, vec2(0.0, 0.0));
+}
+
+[test]
+link success
-- 
1.9.3



More information about the Piglit mailing list