diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-08-18 12:43:23 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2022-09-01 19:44:19 +0200 |
commit | c681c7c23f79e2f0d6dbb2ce8961edd216cefd91 (patch) | |
tree | 861706d22bb395ff5e1f86c4948a0cc7e8cab9ac /tests/auto/gui/rhi/qrhi/data/simpletess.tesc | |
parent | 855a9ca217ad3b9d8eb8f6544698a174323843fc (diff) |
rhi: metal: Add support for tessellation
Change-Id: Ie8d226a6a959aa5e78284ea72505fd26aec1e671
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/auto/gui/rhi/qrhi/data/simpletess.tesc')
-rw-r--r-- | tests/auto/gui/rhi/qrhi/data/simpletess.tesc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/auto/gui/rhi/qrhi/data/simpletess.tesc b/tests/auto/gui/rhi/qrhi/data/simpletess.tesc new file mode 100644 index 0000000000..e192fc77c7 --- /dev/null +++ b/tests/auto/gui/rhi/qrhi/data/simpletess.tesc @@ -0,0 +1,22 @@ +#version 440 + +layout(vertices = 3) out; + +layout(location = 0) in vec3 inColor[]; +layout(location = 0) out vec3 outColor[]; +layout(location = 1) patch out float a_per_patch_output_variable; + +void main() +{ + if (gl_InvocationID == 0) { + gl_TessLevelOuter[0] = 4.0; + gl_TessLevelOuter[1] = 4.0; + gl_TessLevelOuter[2] = 4.0; + + gl_TessLevelInner[0] = 4.0; + } + + gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position; + outColor[gl_InvocationID] = inColor[gl_InvocationID]; + a_per_patch_output_variable = 1.0; +} |