diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-06-27 10:56:56 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-06-27 17:39:23 +0200 |
commit | 821c404ef2846129cc1020a83a80b0a183a1d3ac (patch) | |
tree | 765011ba4a0814bd2ac237774e59aa3128597374 /tests/manual/rhi/multiview/multiview.vert | |
parent | 43ea57b901bc02af7c0b9ebf5a5032184dae312e (diff) |
rhi: multiview: Exercise instancing in the test
Just to make sure instanced drawing does not regress. Relevant
particularly with Metal.
Fixes: QTBUG-114885
Change-Id: Ib39066d32985bf25ca02d5aa54d9cf654772be9a
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/manual/rhi/multiview/multiview.vert')
-rw-r--r-- | tests/manual/rhi/multiview/multiview.vert | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/manual/rhi/multiview/multiview.vert b/tests/manual/rhi/multiview/multiview.vert index b9c9e5a704..4d4949672f 100644 --- a/tests/manual/rhi/multiview/multiview.vert +++ b/tests/manual/rhi/multiview/multiview.vert @@ -3,6 +3,7 @@ layout(location = 0) in vec4 pos; layout(location = 1) in vec3 color; +layout(location = 2) in vec3 translation; layout(location = 0) out vec3 v_color; @@ -14,5 +15,5 @@ layout(std140, binding = 0) uniform buf void main() { v_color = color; - gl_Position = mvp[gl_ViewIndex] * pos; + gl_Position = mvp[gl_ViewIndex] * (pos + vec4(translation, 0.0)); } |