summaryrefslogtreecommitdiffstats
path: root/source/slang/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/compiler.h')
-rw-r--r--source/slang/compiler.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/slang/compiler.h b/source/slang/compiler.h
index 71cd0adbf..a0568a047 100644
--- a/source/slang/compiler.h
+++ b/source/slang/compiler.h
@@ -89,6 +89,22 @@ namespace Slang
kMatrixLayoutMode_ColumnMajor = SLANG_MATRIX_LAYOUT_COLUMN_MAJOR,
};
+ enum class DebugInfoLevel : SlangDebugInfoLevel
+ {
+ None = SLANG_DEBUG_INFO_LEVEL_NONE,
+ Minimal = SLANG_DEBUG_INFO_LEVEL_MINIMAL,
+ Standard = SLANG_DEBUG_INFO_LEVEL_STANDARD,
+ Maximal = SLANG_DEBUG_INFO_LEVEL_MAXIMAL,
+ };
+
+ enum class OptimizationLevel : SlangOptimizationLevel
+ {
+ None = SLANG_OPTIMIZATION_LEVEL_NONE,
+ Default = SLANG_OPTIMIZATION_LEVEL_DEFAULT,
+ High = SLANG_OPTIMIZATION_LEVEL_HIGH,
+ Maximal = SLANG_OPTIMIZATION_LEVEL_MAXIMAL,
+ };
+
class Linkage;
class Module;
class Program;
@@ -697,6 +713,10 @@ namespace Slang
MatrixLayoutMode defaultMatrixLayoutMode = kMatrixLayoutMode_ColumnMajor;
MatrixLayoutMode getDefaultMatrixLayoutMode() { return defaultMatrixLayoutMode; }
+ DebugInfoLevel debugInfoLevel = DebugInfoLevel::None;
+
+ OptimizationLevel optimizationLevel = OptimizationLevel::Default;
+
private:
Session* m_session = nullptr;