From e13bb3a351c81e14e3e33c5f1353eb93fff3ba2d Mon Sep 17 00:00:00 2001 From: Daniel Kalmar <1355747+kalmard0@users.noreply.github.com> Date: Wed, 28 Aug 2024 13:20:46 +0000 Subject: [PATCH] Use the correct options enum when checking D3D12 features. --- src/renderer_d3d12.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index 76c454ee16..e22202ff3b 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -1101,7 +1101,7 @@ namespace bgfx { namespace d3d12 break; } - for (D3D12_FEATURE_DATA_D3D12_OPTIONS13 options13; SUCCEEDED(m_device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS12, &options13, sizeof(options13)));) + for (D3D12_FEATURE_DATA_D3D12_OPTIONS13 options13; SUCCEEDED(m_device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS13, &options13, sizeof(options13)));) { BX_TRACE("D3D12 options 13:"); BX_TRACE("\tUnrestrictedBufferTextureCopyPitchSupported %d", options13.UnrestrictedBufferTextureCopyPitchSupported); @@ -1113,7 +1113,7 @@ namespace bgfx { namespace d3d12 break; } - for (D3D12_FEATURE_DATA_D3D12_OPTIONS14 options14; SUCCEEDED(m_device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS12, &options14, sizeof(options14)));) + for (D3D12_FEATURE_DATA_D3D12_OPTIONS14 options14; SUCCEEDED(m_device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS14, &options14, sizeof(options14)));) { BX_TRACE("D3D12 options 14:"); BX_TRACE("\tAdvancedTextureOpsSupported %d", options14.AdvancedTextureOpsSupported); @@ -1122,7 +1122,7 @@ namespace bgfx { namespace d3d12 break; } - for (D3D12_FEATURE_DATA_D3D12_OPTIONS15 options15; SUCCEEDED(m_device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS12, &options15, sizeof(options15)));) + for (D3D12_FEATURE_DATA_D3D12_OPTIONS15 options15; SUCCEEDED(m_device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS15, &options15, sizeof(options15)));) { BX_TRACE("D3D12 options 15:"); BX_TRACE("\tTriangleFanSupported %d", options15.TriangleFanSupported);