Skip to content

Commit

Permalink
fallback for D3D_FEATURE_LEVEL_12_2
Browse files Browse the repository at this point in the history
  • Loading branch information
2A5F committed Nov 25, 2024
1 parent 51fda0d commit e87d217
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Graphics/GraphicsEngineD3D12/include/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ 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 e87d217

Please sign in to comment.