Table of Contents

Class GraphicsDeviceInformation

Namespace
Stride.Games
Assembly
Stride.Games.dll

Contains information needed to create a GraphicsDevice with a specific configuration.

public class GraphicsDeviceInformation : IEquatable<GraphicsDeviceInformation>
Inheritance
object
GraphicsDeviceInformation
Implements
Extension Methods

Constructors

GraphicsDeviceInformation()

Initializes a new instance of the GraphicsDeviceInformation class.

public GraphicsDeviceInformation()

Properties

Adapter

Gets or sets the Graphics Adapter that will do the rendering.

public GraphicsAdapter Adapter { get; set; }

Property Value

GraphicsAdapter

DeviceCreationFlags

Gets or sets the creation flags.

public DeviceCreationFlags DeviceCreationFlags { get; set; }

Property Value

DeviceCreationFlags

A combination of flags specifying which features and modes to request from the created Graphics Device.

GraphicsProfile

Gets or sets the graphics profile to aim for, which determines the hardware and software features that are considered minimum for the Graphics Device.

public GraphicsProfile GraphicsProfile { get; set; }

Property Value

GraphicsProfile

PresentationParameters

Gets or sets the presentation parameters, which determine how the Graphics Device will present the rendered frame to the screen.

public PresentationParameters PresentationParameters { get; set; }

Property Value

PresentationParameters

Methods

Clone()

Creates a new object that is a copy of the current instance.

public GraphicsDeviceInformation Clone()

Returns

GraphicsDeviceInformation

A new object that is a copy of this instance.

Equals(GraphicsDeviceInformation?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(GraphicsDeviceInformation? other)

Parameters

other GraphicsDeviceInformation

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(GraphicsDeviceInformation, GraphicsDeviceInformation)

public static bool operator ==(GraphicsDeviceInformation left, GraphicsDeviceInformation right)

Parameters

left GraphicsDeviceInformation
right GraphicsDeviceInformation

Returns

bool

operator !=(GraphicsDeviceInformation, GraphicsDeviceInformation)

public static bool operator !=(GraphicsDeviceInformation left, GraphicsDeviceInformation right)

Parameters

left GraphicsDeviceInformation
right GraphicsDeviceInformation

Returns

bool