Skip to content

Commit c390a12

Browse files
2A5FTheMostDiligent
authored andcommitted
edit D3D_FEATURE_LEVEL_12_2
1 parent 0e1ec5d commit c390a12

File tree

1 file changed

+4
-4
lines changed
  • Graphics/GraphicsEngineD3D12/include

1 file changed

+4
-4
lines changed

Graphics/GraphicsEngineD3D12/include/pch.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444

4545
#include "WinHPostface.h"
4646

47+
#ifndef NTDDI_WIN10_CO // First defined in Win SDK 10.0.22000.0
48+
constexpr D3D_FEATURE_LEVEL D3D_FEATURE_LEVEL_12_2 = static_cast<D3D_FEATURE_LEVEL>(0xc200);
49+
#endif
50+
4751
#ifndef NTDDI_WIN10_VB // First defined in Win SDK 10.0.19041.0
4852
# define D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS static_cast<D3D12_INDIRECT_ARGUMENT_TYPE>(D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW + 1)
4953
# define D3D12_RAYTRACING_TIER_1_1 static_cast<D3D12_RAYTRACING_TIER>(11)
@@ -58,10 +62,6 @@ enum D3D12_SHADING_RATE_COMBINER
5862
{
5963
};
6064

61-
#ifndef NTDDI_WIN10_CO // First defined in Win SDK 10.0.22000.0
62-
# define D3D_FEATURE_LEVEL_12_2 0xc200
63-
#endif
64-
6565
constexpr D3D12_RESOURCE_STATES D3D12_RESOURCE_STATE_SHADING_RATE_SOURCE = static_cast<D3D12_RESOURCE_STATES>(0x1000000);
6666
#endif
6767

0 commit comments

Comments
 (0)