Class GraphicsDeviceInformation
Contains information needed to create a GraphicsDevice with a specific configuration.
public class GraphicsDeviceInformation : IEquatable<GraphicsDeviceInformation>
- Inheritance
-
objectGraphicsDeviceInformation
- 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
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
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
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
otherGraphicsDeviceInformationAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
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
Returns
operator !=(GraphicsDeviceInformation, GraphicsDeviceInformation)
public static bool operator !=(GraphicsDeviceInformation left, GraphicsDeviceInformation right)