From e5bec2fcb86da56775a3f1a0bc0af5039b722e86 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 21 Feb 2023 11:46:21 +0800 Subject: 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 --- slang.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'slang.h') diff --git a/slang.h b/slang.h index 4ce6b9451..d281cea85 100644 --- a/slang.h +++ b/slang.h @@ -4068,10 +4068,6 @@ namespace slang */ SlangFloatingPointMode floatingPointMode = SLANG_FLOATING_POINT_MODE_DEFAULT; - /** Optimization level to use for the target. - */ - SlangOptimizationLevel optimizationLevel = SLANG_OPTIMIZATION_LEVEL_DEFAULT; - /** The line directive mode for output source code. */ SlangLineDirectiveMode lineDirectiveMode = SLANG_LINE_DIRECTIVE_MODE_DEFAULT; -- cgit v1.2.3