DirectX support for shader decompilation is Windows-only

This commit is contained in:
ds5678 2025-11-04 00:19:06 -08:00
parent 4cd2306290
commit 6183a71996

View File

@ -50,7 +50,7 @@ public sealed class PremiumFeaturesPage : DefaultPage
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)