mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
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:
parent
03393d0c22
commit
548aba4465
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user