From e87d217fb5bcf5ffea552f7dd7fbf543bf38a984 Mon Sep 17 00:00:00 2001 From: U2A5F Date: Mon, 25 Nov 2024 14:17:18 +0800 Subject: [PATCH] fallback for D3D_FEATURE_LEVEL_12_2 --- Graphics/GraphicsEngineD3D12/include/pch.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Graphics/GraphicsEngineD3D12/include/pch.h b/Graphics/GraphicsEngineD3D12/include/pch.h index d39fcf44b..600316ffc 100644 --- a/Graphics/GraphicsEngineD3D12/include/pch.h +++ b/Graphics/GraphicsEngineD3D12/include/pch.h @@ -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(0x1000000); #endif