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:
authorShintaro Sakahara <skhrshin@flokart.world>2022-02-16 15:53:24 +0300
committerShintaro Sakahara <skhrshin@flokart.world>2022-02-16 15:53:24 +0300
commited4ded040e693a3e37a0187de68929aef50fd988 (patch)
treedfea5c49d918fa6847974cc767d162a92f61cb4f /test_shaders.py
parent131278458ea8eebe6a6e9c476fbcf71278726e1a (diff)
HLSL: Make --flatten-ubo work correctly
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 eca78c32..640baa23 100755
--- a/test_shaders.py
+++ b/test_shaders.py
@@ -462,6 +462,8 @@ def cross_compile_hlsl(shader, spirv, opt, force_no_external_validation, iterati
hlsl_args = [spirv_cross_path, '--entry', 'main', '--output', hlsl_path, spirv_path, '--hlsl-enable-compat', '--hlsl', '--shader-model', sm, '--iterations', str(iterations)]
if '.line.' in shader:
hlsl_args.append('--emit-line-directives')
+ if '.flatten.' in shader:
+ hlsl_args.append('--flatten-ubo')
if '.force-uav.' in shader:
hlsl_args.append('--hlsl-force-storage-buffer-as-uav')
if '.zero-initialize.' in shader: