From df8ace2ddacb96d3ea4e17f5c1e2d482c04a1684 Mon Sep 17 00:00:00 2001 From: DarthAffe Date: Sun, 1 Mar 2026 20:22:46 +0100 Subject: [PATCH] Added linux-vulkan --- .github/workflows/backends.yml | 1 + Backends/StableDiffusion.NET.Backend.Vulkan.nuspec | 1 + StableDiffusion.NET/Backends/VulkanBackend.cs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backends.yml b/.github/workflows/backends.yml index 12138bb..05b9748 100644 --- a/.github/workflows/backends.yml +++ b/.github/workflows/backends.yml @@ -535,6 +535,7 @@ jobs: - windows-hip - windows-vulkan - linux-cpu + - linux-wulkan - linux-cuda12 - linux-sycl - linux-hip diff --git a/Backends/StableDiffusion.NET.Backend.Vulkan.nuspec b/Backends/StableDiffusion.NET.Backend.Vulkan.nuspec index 0f9057c..414cae0 100644 --- a/Backends/StableDiffusion.NET.Backend.Vulkan.nuspec +++ b/Backends/StableDiffusion.NET.Backend.Vulkan.nuspec @@ -19,6 +19,7 @@ + diff --git a/StableDiffusion.NET/Backends/VulkanBackend.cs b/StableDiffusion.NET/Backends/VulkanBackend.cs index 0fa5097..f5d5caa 100644 --- a/StableDiffusion.NET/Backends/VulkanBackend.cs +++ b/StableDiffusion.NET/Backends/VulkanBackend.cs @@ -13,7 +13,7 @@ public class VulkanBackend : IBackend public int Priority { get; set; } = 5; - public bool IsAvailable => RuntimeInformation.IsOSPlatform(OSPlatform.Windows) + public bool IsAvailable => (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) && (RuntimeInformation.OSArchitecture == Architecture.X64); public string PathPart => "vulkan";