Skip to content

Commit

Permalink
Use the correct options enum when checking D3D12 features.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalmard0 committed Aug 28, 2024
1 parent 0b73e8c commit e13bb3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer_d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit e13bb3a

Please sign in to comment.