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-11-03 13:18:32 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2020-11-03 13:18:32 +0300
commitb3344174f7474c97ed473893d072317d06f156db (patch)
tree3c9efd3e9fdcbc6994093649cebbfa2e4d30ad33 /test_shaders.py
parent244839d350c1e19655845fc8dc0b78ecb0dfbda6 (diff)
HLSL: Add option to flatten matrix vertex input semantics.
Helps translation layers where we expect inputs to be multiple float vectors rather than an indexed matrix.
Diffstat (limited to 'test_shaders.py')
-rwxr-xr-xtest_shaders.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test_shaders.py b/test_shaders.py
index 451fc00f..119617a7 100755
--- a/test_shaders.py
+++ b/test_shaders.py
@@ -425,6 +425,8 @@ def cross_compile_hlsl(shader, spirv, opt, force_no_external_validation, iterati
hlsl_args.append('--hlsl-nonwritable-uav-texture-as-srv')
if '.native-16bit.' in shader:
hlsl_args.append('--hlsl-enable-16bit-types')
+ if '.flatten-matrix-vertex-input.' in shader:
+ hlsl_args.append('--hlsl-flatten-matrix-vertex-input-semantics')
subprocess.check_call(hlsl_args)