diff options
author | Shintaro Sakahara <skhrshin@flokart.world> | 2022-02-16 15:53:24 +0300 |
---|---|---|
committer | Shintaro Sakahara <skhrshin@flokart.world> | 2022-02-16 15:53:24 +0300 |
commit | ed4ded040e693a3e37a0187de68929aef50fd988 (patch) | |
tree | dfea5c49d918fa6847974cc767d162a92f61cb4f /test_shaders.py | |
parent | 131278458ea8eebe6a6e9c476fbcf71278726e1a (diff) |
HLSL: Make --flatten-ubo work correctly
Diffstat (limited to 'test_shaders.py')
-rwxr-xr-x | test_shaders.py | 2 |
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: |