aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert')
-rw-r--r--tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert20
1 files changed, 13 insertions, 7 deletions
diff --git a/tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert b/tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert
index 2ab6f94c19..96494b7149 100644
--- a/tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert
+++ b/tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert
@@ -1,11 +1,17 @@
-uniform highp mat4 qt_Matrix;
-attribute highp vec4 qt_Vertex;
-attribute highp vec2 qt_MultiTexCoord0;
-varying highp vec2 qt_TexCoord0;
-uniform highp vec4 qt_SubRect_source;
+#version 440
+
+layout(location = 0) in vec4 qt_Vertex;
+layout(location = 1) in vec2 qt_MultiTexCoord0;
+
+layout(location = 0) out vec2 qt_TexCoord0;
+
+layout(std140, binding = 0) uniform buf {
+ mat4 qt_Matrix;
+ vec4 qt_SubRect_source;
+} ubuf;
void main()
{
- qt_TexCoord0 = qt_SubRect_source.xy + qt_SubRect_source.zw * qt_MultiTexCoord0;
- gl_Position = qt_Matrix * qt_Vertex;
+ qt_TexCoord0 = ubuf.qt_SubRect_source.xy + ubuf.qt_SubRect_source.zw * qt_MultiTexCoord0;
+ gl_Position = ubuf.qt_Matrix * qt_Vertex;
}