Update IsDirectX to exclude xboxone_d3d12 platform

The `IsDirectX` method in the `GPUPlatformExtensions` class was modified to remove `xboxone_d3d12` from the list of platforms considered as DirectX. The method now only returns `true` for `d3d9`, `d3d11`, and `d3d11_9x`, narrowing the platforms that qualify as DirectX.
This commit is contained in:
ds5678 2025-10-27 00:11:25 -07:00
parent 03393d0c22
commit 548aba4465

View File

@ -83,6 +83,6 @@ public static class GPUPlatformExtensions
{
public static bool IsDirectX(this GPUPlatform platform)
{
return platform is GPUPlatform.d3d9 or GPUPlatform.d3d11 or GPUPlatform.d3d11_9x or GPUPlatform.xboxone_d3d12;
return platform is GPUPlatform.d3d9 or GPUPlatform.d3d11 or GPUPlatform.d3d11_9x;
}
}