[llvm] [DirectX] Add DXIL_MODULE_FLAG for ShaderFlags. (PR #83217)
Xiang Li via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 28 09:04:14 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")
----------------
python3kgae wrote:
We could share, just need to add a field to SHADER_FEATURE_FLAG for DXILModuleFlag bit offset.
If we put all things as SHADER_FEATURE_FLAG, there will be something not SHADER_FEATURE_FLAG though.
https://github.com/llvm/llvm-project/pull/83217
More information about the llvm-commits
mailing list