[clang] [llvm] [NFC][HLSL][DXIL] Move D3D12.h enums and flags to DXILABI (PR #143041)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 10 14:52:57 PDT 2025


================
@@ -99,6 +99,128 @@ enum class SamplerFeedbackType : uint32_t {
 const unsigned MinWaveSize = 4;
 const unsigned MaxWaveSize = 128;
 
+// Definition of the various d3d12.h enumerations and flags. The definitions of
+// all values here correspond to their description in the d3d12.h header and
+// are carried over from their values in DXC. For reference:
+// https://learn.microsoft.com/en-us/windows/win32/api/d3d12/
+
+// D3D12_ROOT_SIGNATURE_FLAGS
+enum class RootFlags : uint32_t {
----------------
bogner wrote:

Thinking about this some more, I think we're putting this in the wrong place here. These values are all part of the DXContainer, and we have definitions of them in `BinaryFormat/DXContainer.h`. It should be reasonable to depend on BinaryFormat anywhere we're using these, so we should probably just get them from there directly.



https://github.com/llvm/llvm-project/pull/143041


More information about the llvm-commits mailing list