Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2020-07-01 12:37:03 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2020-07-01 12:37:03 +0300
commit8f716947c292a5f7a7fd1d7e1b16bc35e6dfb77e (patch)
treedc44be847a2fb771066162efcd02b3dc339783be /test_shaders.py
parent2894b408680e3d47fa4f69459506c9e7e0cca34c (diff)
test: Use --hlsl-dx9-compatible when attempting to compile SM 3.0 shaders.
Diffstat (limited to 'test_shaders.py')
-rwxr-xr-xtest_shaders.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test_shaders.py b/test_shaders.py
index b4558734..1f2e2504 100755
--- a/test_shaders.py
+++ b/test_shaders.py
@@ -326,8 +326,13 @@ def validate_shader_hlsl(shader, force_no_external_validation, paths):
if '.fxconly.' in shader:
test_glslang = False
+ hlsl_args = [paths.glslang, '--amb', '-e', 'main', '-D', '--target-env', 'vulkan1.1', '-V', shader]
+ if '.sm30.' in shader:
+ hlsl_args.append('--hlsl-dx9-compatible')
+
if test_glslang:
- subprocess.check_call([paths.glslang, '--amb', '-e', 'main', '-D', '--target-env', 'vulkan1.1', '-V', shader])
+ subprocess.check_call(hlsl_args)
+
is_no_fxc = '.nofxc.' in shader
global ignore_fxc
if (not ignore_fxc) and (not force_no_external_validation) and (not is_no_fxc):