GPU D3D12: Fix depth format sample count support check

This commit is contained in:
Evan Hemsley
2026-09-01 15:47:10 -07:00
committed by Ethan Lee
parent f26af13381
commit 489f8fc0a8

View File

@@ -8372,6 +8372,13 @@ static bool D3D12_SupportsSampleCount(
featureData.Flags = (D3D12_MULTISAMPLE_QUALITY_LEVEL_FLAGS)0;
#endif
featureData.Format = SDLToD3D12_TextureFormat[format];
if (IsDepthFormat(format)) {
featureData.Format = SDLToD3D12_DepthFormat[format];
} else {
featureData.Format = SDLToD3D12_TextureFormat[format];
}
featureData.SampleCount = SDLToD3D12_SampleCount[sampleCount];
res = ID3D12Device_CheckFeatureSupport(
renderer->device,