summaryrefslogtreecommitdiff
path: root/source/slang/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/compiler.h')
-rw-r--r--source/slang/compiler.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/slang/compiler.h b/source/slang/compiler.h
index c62daf228..1f4a4736a 100644
--- a/source/slang/compiler.h
+++ b/source/slang/compiler.h
@@ -203,6 +203,13 @@ namespace Slang
RefPtr<IRModule> irModule;
};
+ enum class FloatingPointMode : SlangFloatingPointMode
+ {
+ Default = SLANG_FLOATING_POINT_MODE_DEFAULT,
+ Fast = SLANG_FLOATING_POINT_MODE_FAST,
+ Precise = SLANG_FLOATING_POINT_MODE_PRECISE,
+ };
+
// A request to generate output in some target format
class TargetRequest : public RefObject
{
@@ -211,6 +218,7 @@ namespace Slang
CodeGenTarget target;
SlangTargetFlags targetFlags = 0;
Slang::Profile targetProfile = Slang::Profile();
+ FloatingPointMode floatingPointMode = FloatingPointMode::Default;
// Requested output paths for each entry point.
// An empty string indices no output desired for