diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-10-08 11:55:56 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-10-09 17:15:06 +0200 |
commit | df0b1836b5b7c14095258a510ec27758a921eb0a (patch) | |
tree | 61bc447bccf2d23b7e01b6f025bb0e759d4acce7 /tests/auto/gui/rhi/qrhi/data/textured.vert | |
parent | b2de7f8583a9a2e73f0de507534158354a86ce7d (diff) |
rhi: Autotest rendering with uniform buffer
Change-Id: I4251f31494680c78e90a08a2b471cb1af08ecd81
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests/auto/gui/rhi/qrhi/data/textured.vert')
-rw-r--r-- | tests/auto/gui/rhi/qrhi/data/textured.vert | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/gui/rhi/qrhi/data/textured.vert b/tests/auto/gui/rhi/qrhi/data/textured.vert new file mode 100644 index 0000000000..f1ccf2ee50 --- /dev/null +++ b/tests/auto/gui/rhi/qrhi/data/textured.vert @@ -0,0 +1,19 @@ +#version 440 + +layout(location = 0) in vec4 position; +layout(location = 1) in vec2 texcoord; + +layout(location = 0) out vec2 uv; + +layout(std140, binding = 0) uniform buf { + mat4 matrix; + float opacity; +} ubuf; + +out gl_PerVertex { vec4 gl_Position; }; + +void main() +{ + uv = texcoord; + gl_Position = ubuf.matrix * position; +} |