mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 16:37:48 +01:00
HasGPU check
This commit is contained in:
@@ -281,6 +281,23 @@ namespace Flowframes.Os
|
|||||||
ShowNotification(title, text);
|
ShowNotification(title, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool HasGpu()
|
||||||
|
{
|
||||||
|
int gpusCount = 0;
|
||||||
|
|
||||||
|
if (VulkanUtils.VkDevices != null)
|
||||||
|
{
|
||||||
|
gpusCount += VulkanUtils.VkDevices.Count;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (NvApi.NvGpus != null && NvApi.NvGpus.Any())
|
||||||
|
{
|
||||||
|
gpusCount += NvApi.NvGpus.Count;
|
||||||
|
}
|
||||||
|
|
||||||
|
return gpusCount > 0;
|
||||||
|
}
|
||||||
|
|
||||||
public static string GetGpus()
|
public static string GetGpus()
|
||||||
{
|
{
|
||||||
List<string> gpusVk = new List<string>();
|
List<string> gpusVk = new List<string>();
|
||||||
|
|||||||
Reference in New Issue
Block a user