diff options
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -451,6 +451,17 @@ extern "C" }; /*! + @brief Options to control floating-point precision guarantees for a target. + */ + typedef unsigned int SlangFloatingPointMode; + enum + { + SLANG_FLOATING_POINT_MODE_DEFAULT = 0, + SLANG_FLOATING_POINT_MODE_FAST, + SLANG_FLOATING_POINT_MODE_PRECISE, + }; + + /*! @brief Options to control emission of `#line` directives */ typedef unsigned int SlangLineDirectiveMode; @@ -877,6 +888,14 @@ extern "C" int targetIndex, SlangTargetFlags flags); + /*! + @brief Set the floating point mode (e.g., precise or fast) to use a target. + */ + SLANG_API void spSetTargetFloatingPointMode( + SlangCompileRequest* request, + int targetIndex, + SlangFloatingPointMode mode); + /* DEPRECATED: use `spSetMatrixLayoutMode` instead. */ SLANG_API void spSetTargetMatrixLayoutMode( SlangCompileRequest* request, |
