Skip to content

Class PhysicalDeviceInfo

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

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

public sealed record PhysicalDeviceInfo : IEquatable<PhysicalDeviceInfo>

Inheritance

object ← PhysicalDeviceInfo

Implements

IEquatable<PhysicalDeviceInfo>

Inherited Members

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

Constructors

PhysicalDeviceInfo(VkPhysicalDevice, string, VkPhysicalDeviceType, uint, uint, string[])

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

public PhysicalDeviceInfo(VkPhysicalDevice Handle, string Name, VkPhysicalDeviceType Type, uint ApiVersion, uint QueueFamily, string[] Reasons)

Parameters

Handle VkPhysicalDevice

Name string

Type VkPhysicalDeviceType

ApiVersion uint

QueueFamily uint

Reasons string[]

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

Properties

ApiVersion

public uint ApiVersion { get; init; }

Property Value

uint

Handle

public VkPhysicalDevice Handle { get; init; }

Property Value

VkPhysicalDevice

Name

public string Name { get; init; }

Property Value

string

QueueFamily

public uint QueueFamily { get; init; }

Property Value

uint

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

Type

public VkPhysicalDeviceType Type { get; init; }

Property Value

VkPhysicalDeviceType

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.