mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2026-03-24 10:18:49 +00:00
Added linux-vulkan
This commit is contained in:
parent
f43deaa24a
commit
df8ace2dda
1
.github/workflows/backends.yml
vendored
1
.github/workflows/backends.yml
vendored
@ -535,6 +535,7 @@ jobs:
|
|||||||
- windows-hip
|
- windows-hip
|
||||||
- windows-vulkan
|
- windows-vulkan
|
||||||
- linux-cpu
|
- linux-cpu
|
||||||
|
- linux-wulkan
|
||||||
- linux-cuda12
|
- linux-cuda12
|
||||||
- linux-sycl
|
- linux-sycl
|
||||||
- linux-hip
|
- linux-hip
|
||||||
|
|||||||
@ -19,6 +19,7 @@
|
|||||||
<file src="StableDiffusion.NET.Backend.props" target="build/net8.0/StableDiffusion.NET.Backend.Vulkan.props" />
|
<file src="StableDiffusion.NET.Backend.props" target="build/net8.0/StableDiffusion.NET.Backend.Vulkan.props" />
|
||||||
|
|
||||||
<file src="windows-vulkan/stable-diffusion.dll" target="runtimes\win-x64\native\vulkan\stable-diffusion.dll" />
|
<file src="windows-vulkan/stable-diffusion.dll" target="runtimes\win-x64\native\vulkan\stable-diffusion.dll" />
|
||||||
|
<file src="linux-vulkan/stable-diffusion.dll" target="runtimes\linux-x64\native\vulkan\stable-diffusion.dll" />
|
||||||
|
|
||||||
<file src="sd_net_vulkan.png" target="sd_net_vulkan.png" />
|
<file src="sd_net_vulkan.png" target="sd_net_vulkan.png" />
|
||||||
<file src="readme.md" target="readme.md" />
|
<file src="readme.md" target="readme.md" />
|
||||||
|
|||||||
@ -13,7 +13,7 @@ public class VulkanBackend : IBackend
|
|||||||
|
|
||||||
public int Priority { get; set; } = 5;
|
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);
|
&& (RuntimeInformation.OSArchitecture == Architecture.X64);
|
||||||
|
|
||||||
public string PathPart => "vulkan";
|
public string PathPart => "vulkan";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user