diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-02-21 11:46:21 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-21 11:46:21 +0800 |
| commit | e5bec2fcb86da56775a3f1a0bc0af5039b722e86 (patch) | |
| tree | aea6bcfa357aa2ff4df24a5dc7bd4982ba2ceead /tools | |
| parent | 47715e625337d489f3c0131bbc2b849378b48a5a (diff) | |
Take into account the optimization level requested in TargetDesc (#2649)
* Take into account the optimization level requested in TargetDesc
Combines conflicting optimization levels by taking the maximum between them; as such they now each represent the lower bound on the eventual optimization level.
Most of the changes are making this clear by s/optimizationLevel/minimumOptimizationLevel
Closes https://github.com/shader-slang/slang/issues/2324
* Remove optimization level from TargetDesc
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/gfx/slang-context.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/gfx/slang-context.h b/tools/gfx/slang-context.h index 0a878e0f5..61dc9baa4 100644 --- a/tools/gfx/slang-context.h +++ b/tools/gfx/slang-context.h @@ -37,7 +37,6 @@ namespace gfx if (targetProfile == nullptr) targetProfile = defaultProfileName; targetDesc.profile = globalSession->findProfile(targetProfile); - targetDesc.optimizationLevel = desc.optimizationLevel; targetDesc.floatingPointMode = desc.floatingPointMode; targetDesc.lineDirectiveMode = desc.lineDirectiveMode; targetDesc.flags = desc.targetFlags; |
