Skip to content

Commit

Permalink
Merge pull request #33 from vertver/win10-fix
Browse files Browse the repository at this point in the history
Fix D3D12 backend on Windows 10
  • Loading branch information
dzhdanNV authored Jan 31, 2024
2 parents 59d0785 + c1f38fa commit 07b745d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/D3D12/DeviceD3D12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 07b745d

Please sign in to comment.