[Piglit] [PATCH] arb_enhanced_layouts: test component qualifier for fragment shader output
Timothy Arceri
timothy.arceri at collabora.com
Tue Dec 15 18:40:04 PST 2015
---
.../component-layout/fs-output.shader_test | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 tests/spec/arb_enhanced_layouts/execution/component-layout/fs-output.shader_test
diff --git a/tests/spec/arb_enhanced_layouts/execution/component-layout/fs-output.shader_test b/tests/spec/arb_enhanced_layouts/execution/component-layout/fs-output.shader_test
new file mode 100644
index 0000000..d4c746c
--- /dev/null
+++ b/tests/spec/arb_enhanced_layouts/execution/component-layout/fs-output.shader_test
@@ -0,0 +1,23 @@
+# Simple test of component layout qualifier for fragment shader outputs
+#
+[require]
+GLSL >= 1.50
+GL_ARB_enhanced_layouts
+
+[vertex shader passthrough]
+
+[fragment shader]
+#extension GL_ARB_enhanced_layouts : require
+
+layout(location = 0, component = 1) out vec3 color;
+layout(location = 0) out float colour;
+
+void main()
+{
+ color = vec3(1.0, 0.0, 1.0);
+ colour = 1.0;
+}
+
+[test]
+draw rect -1 -1 2 2
+probe all rgb 1 1 0
--
2.4.3
More information about the Piglit
mailing list