Add optional fxc HLSL test

This commit is contained in:
Robert Konrad 2017-01-26 13:28:36 +01:00
parent 82959c86bb
commit 0a1054e71a

View File

@ -83,6 +83,8 @@ def cross_compile_msl(shader):
def validate_shader_hlsl(shader): def validate_shader_hlsl(shader):
subprocess.check_call(['glslangValidator', '-e', 'main', '-D', '-V', shader]) subprocess.check_call(['glslangValidator', '-e', 'main', '-D', '-V', shader])
if os.path.exists('fxc'):
subprocess.check_call(['fxc', shader])
def cross_compile_hlsl(shader): def cross_compile_hlsl(shader):
spirv_f, spirv_path = tempfile.mkstemp() spirv_f, spirv_path = tempfile.mkstemp()