diff options
Diffstat (limited to 'glslc/test/option_std.py')
-rw-r--r-- | glslc/test/option_std.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/glslc/test/option_std.py b/glslc/test/option_std.py index 52609af..ff65a4b 100644 --- a/glslc/test/option_std.py +++ b/glslc/test/option_std.py @@ -77,6 +77,30 @@ class TestMissingVersionButHavingStd(expect.ValidObjectFile): @inside_glslc_testsuite('OptionStd') +class TestGLSL460(expect.ValidObjectFile): + """Tests that GLSL version 4.6 is supported.""" + + shader = FileShader(core_frag_shader_without_version(), '.frag') + glslc_args = ['-c', '-std=460', shader] + + +@inside_glslc_testsuite('OptionStd') +class TestGLSL460Core(expect.ValidObjectFile): + """Tests that GLSL version 4.6 core profile is supported.""" + + shader = FileShader(core_frag_shader_without_version(), '.frag') + glslc_args = ['-c', '-std=460core', shader] + + +@inside_glslc_testsuite('OptionStd') +class TestESSL320(expect.ValidObjectFile): + """Tests that ESSL version 3.2 is supported.""" + + shader = FileShader(core_frag_shader_without_version(), '.frag') + glslc_args = ['-c', '-std=320es', shader] + + +@inside_glslc_testsuite('OptionStd') class TestStdIgnoredInHlsl(expect.ValidObjectFile): """Tests HLSL compilation ignores -std.""" |