Skip to content

Commit

Permalink
edit D3D_FEATURE_LEVEL_12_2
Browse files Browse the repository at this point in the history
  • Loading branch information
2A5F authored and TheMostDiligent committed Nov 25, 2024
1 parent 0e1ec5d commit c390a12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Graphics/GraphicsEngineD3D12/include/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@

#include "WinHPostface.h"

#ifndef NTDDI_WIN10_CO // First defined in Win SDK 10.0.22000.0
constexpr D3D_FEATURE_LEVEL D3D_FEATURE_LEVEL_12_2 = static_cast<D3D_FEATURE_LEVEL>(0xc200);
#endif

#ifndef NTDDI_WIN10_VB // First defined in Win SDK 10.0.19041.0
# define D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS static_cast<D3D12_INDIRECT_ARGUMENT_TYPE>(D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW + 1)
# define D3D12_RAYTRACING_TIER_1_1 static_cast<D3D12_RAYTRACING_TIER>(11)
Expand All @@ -58,10 +62,6 @@ enum D3D12_SHADING_RATE_COMBINER
{
};

#ifndef NTDDI_WIN10_CO // First defined in Win SDK 10.0.22000.0
# define D3D_FEATURE_LEVEL_12_2 0xc200
#endif

constexpr D3D12_RESOURCE_STATES D3D12_RESOURCE_STATE_SHADING_RATE_SOURCE = static_cast<D3D12_RESOURCE_STATES>(0x1000000);
#endif

Expand Down

0 comments on commit c390a12

Please sign in to comment.