mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
DirectX support for shader decompilation is Windows-only
This commit is contained in:
parent
4cd2306290
commit
6183a71996
@ -50,7 +50,7 @@ public sealed class PremiumFeaturesPage : DefaultPage
|
|||||||
|
|
||||||
private static bool ShaderDecompilationSupported(IShader shader)
|
private static bool ShaderDecompilationSupported(IShader shader)
|
||||||
{
|
{
|
||||||
return shader.GetPlatforms()?.Any(platform => platform is GPUPlatform.vulkan || platform.IsDirectX()) ?? false;
|
return shader.GetPlatforms()?.Any(platform => platform is GPUPlatform.vulkan || (platform.IsDirectX() && OperatingSystem.IsWindows())) ?? false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static FeatureStatus GetFeatureStatus<T>(Func<T, bool>? needsFeatureFunction, Func<T, bool>? isSupportedFunction)
|
private static FeatureStatus GetFeatureStatus<T>(Func<T, bool>? needsFeatureFunction, Func<T, bool>? isSupportedFunction)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user