Skip to content

Class GpuInfo

Namespace: Apogee.Graphics
Assembly: Apogee.Graphics.dll

A GPU a backend found, and whether the engine can use it.

public sealed record GpuInfo : IEquatable<GpuInfo>

Inheritance

object ← GpuInfo

Implements

IEquatable<GpuInfo>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

GpuInfo(string, GpuKind, string, string[])

A GPU a backend found, and whether the engine can use it.

public GpuInfo(string Name, GpuKind Kind, string Api, string[] Reasons)

Parameters

Name string

Kind GpuKind

Api string

Reasons string[]

Why it cannot be used (missing features, no queue that can present); empty when it can.

Properties

Api

public string Api { get; init; }

Property Value

string

Kind

public GpuKind Kind { get; init; }

Property Value

GpuKind

Name

public string Name { get; init; }

Property Value

string

Reasons

Why it cannot be used (missing features, no queue that can present); empty when it can.

public string[] Reasons { get; init; }

Property Value

string[]

Suitable

public bool Suitable { get; }

Property Value

bool

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.