diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2021-01-05 14:12:26 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2021-01-05 14:12:26 +0300 |
commit | 6a3ea0385eafa012490e002f028352f0ff1d78ce (patch) | |
tree | 34e42319735b3397ec30531f87c8a916bca71fc3 /reference | |
parent | 175381fe080f83b254fe15da9097250107ddc701 (diff) |
GLSL: Add test for initializing tess level output.
Diffstat (limited to 'reference')
-rw-r--r-- | reference/shaders-no-opt/asm/tesc/tess-level-initializer.asm.tesc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/reference/shaders-no-opt/asm/tesc/tess-level-initializer.asm.tesc b/reference/shaders-no-opt/asm/tesc/tess-level-initializer.asm.tesc new file mode 100644 index 00000000..ebd2d8ae --- /dev/null +++ b/reference/shaders-no-opt/asm/tesc/tess-level-initializer.asm.tesc @@ -0,0 +1,24 @@ +#version 450 +layout(vertices = 4) out; + +const float _5_init[2] = float[](0.0, 0.0); +const float _6_init[4] = float[](0.0, 0.0, 0.0, 0.0); +void main() +{ + if (gl_InvocationID == 0) + { + gl_TessLevelInner = _5_init; + } + if (gl_InvocationID == 0) + { + gl_TessLevelOuter = _6_init; + } + gl_out[gl_InvocationID].gl_Position = vec4(1.0); + gl_TessLevelInner[0] = 1.0; + gl_TessLevelInner[1] = 2.0; + gl_TessLevelOuter[0] = 3.0; + gl_TessLevelOuter[1] = 4.0; + gl_TessLevelOuter[2] = 5.0; + gl_TessLevelOuter[3] = 6.0; +} + |