[llvm] [DirectX] Add DXIL_MODULE_FLAG for ShaderFlags. (PR #83217)
Chris B via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 08:31:42 PST 2024
================
@@ -0,0 +1,76 @@
+
+#ifdef DXIL_MODULE_FLAG
+
+// DXIL_MODULE_FLAG(bit offset for the flag, bit offset for feature flag (-1 for no feature flag), name, description.
+DXIL_MODULE_FLAG( 0, -1, DisableOptimizations, "D3D11_1_SB_GLOBAL_FLAG_SKIP_OPTIMIZATION")
+DXIL_MODULE_FLAG( 1, -1, DisableMathRefactoring, "D3D10_SB_GLOBAL_FLAG_REFACTORING_ALLOWED")
+DXIL_MODULE_FLAG( 2, 0, EnableDoublePrecision, "Double-precision floating point")
----------------
llvm-beanz wrote:
A bunch of these flags are duplicated in the DXContainerCosntants. Is there a reason we need to define them twice?
https://github.com/llvm/llvm-project/pull/83217
More information about the llvm-commits
mailing list