Table of Contents

Property Devices

Namespace
LMKit.Graphics.Gpu
Assembly
LM-Kit.NET.dll

Devices

Gets a read-only list of GPU devices available on the system.

public static IReadOnlyList<GpuDeviceInfo> Devices { get; }

Property Value

IReadOnlyList<GpuDeviceInfo>

Examples

Listing All GPU Devices

foreach (var device in GpuDeviceInfo.Devices)
{
    Console.WriteLine($"Device Name: {device.DeviceName}");
    Console.WriteLine($"Description: {device.DeviceDescription}");
    Console.WriteLine($"Total Memory: {device.TotalMemorySize} bytes");
    Console.WriteLine($"Free Memory: {device.FreeMemorySize} bytes");
    Console.WriteLine($"Device Type: {device.DeviceType}");
    Console.WriteLine($"Device Number: {device.DeviceNumber}");
    Console.WriteLine("------------");
}