From c1f38fa1e0a83277702714f7f3e19c09c3799fd3 Mon Sep 17 00:00:00 2001 From: Anton Kovalev Date: Wed, 31 Jan 2024 02:03:13 +0100 Subject: [PATCH] Fix D3D12 backend on Windows 10 --- Source/D3D12/DeviceD3D12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/D3D12/DeviceD3D12.cpp b/Source/D3D12/DeviceD3D12.cpp index 5fed77fc..87cd42aa 100644 --- a/Source/D3D12/DeviceD3D12.cpp +++ b/Source/D3D12/DeviceD3D12.cpp @@ -415,6 +415,7 @@ void DeviceD3D12::FillDesc(bool enableValidation) if (FAILED(hr)) REPORT_WARNING(this, "ID3D12Device::CheckFeatureSupport(options7) failed, result = 0x%08X!", hr); +#ifdef NRI_USE_AGILITY_SDK D3D12_FEATURE_DATA_D3D12_OPTIONS8 options8 = {}; hr = m_Device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS8, &options8, sizeof(options8)); if (FAILED(hr)) @@ -445,7 +446,6 @@ void DeviceD3D12::FillDesc(bool enableValidation) if (FAILED(hr)) REPORT_WARNING(this, "ID3D12Device::CheckFeatureSupport(options13) failed, result = 0x%08X!", hr); -#ifdef NRI_USE_AGILITY_SDK D3D12_FEATURE_DATA_D3D12_OPTIONS14 options14 = {}; hr = m_Device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS14, &options14, sizeof(options14)); if (FAILED(hr))