Class GraphicsAdapter
public sealed class GraphicsAdapter : IDisposable
- Inheritance
-
GraphicsAdapter
- Implements
- Inherited Members
Properties
Adapters
public static ReadOnlyCollection<GraphicsAdapter> Adapters { get; }
Property Value
CurrentDisplayMode
public DisplayMode CurrentDisplayMode { get; }
Property Value
DefaultAdapter
public static GraphicsAdapter DefaultAdapter { get; }
Property Value
Description
public string Description { get; }
Property Value
DeviceId
public int DeviceId { get; }
Property Value
DeviceName
public string DeviceName { get; }
Property Value
IsDefaultAdapter
public bool IsDefaultAdapter { get; }
Property Value
IsWideScreen
Returns true if the CurrentDisplayMode is widescreen.
public bool IsWideScreen { get; }
Property Value
Remarks
Common widescreen modes include 16:9, 16:10 and 2:1.
MonitorHandle
public nint MonitorHandle { get; }
Property Value
Revision
public int Revision { get; }
Property Value
SubSystemId
public int SubSystemId { get; }
Property Value
SupportedDisplayModes
public DisplayModeCollection SupportedDisplayModes { get; }
Property Value
UseDebugLayers
Used to request the graphics device should be created with debugging features enabled.
public static bool UseDebugLayers { get; set; }
Property Value
UseDriverType
Used to request creation of a specific kind of driver.
public static GraphicsAdapter.DriverType UseDriverType { get; set; }
Property Value
Remarks
These values only work on DirectX platforms and must be defined before the graphics device is created. Hardware by default.
UseReferenceDevice
Used to request creation of the reference graphics device, or the default hardware accelerated device (when set to false).
public static bool UseReferenceDevice { get; set; }
Property Value
Remarks
This only works on DirectX platforms where a reference graphics device is available and must be defined before the graphics device is created. It defaults to false.
VendorId
public int VendorId { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
IsProfileSupported(GraphicsProfile)
public bool IsProfileSupported(GraphicsProfile graphicsProfile)
Parameters
graphicsProfileGraphicsProfile
Returns
QueryRenderTargetFormat(GraphicsProfile, SurfaceFormat, DepthFormat, int, out SurfaceFormat, out DepthFormat, out int)
Queries for support of the requested render target format on the adaptor.
public bool QueryRenderTargetFormat(GraphicsProfile graphicsProfile, SurfaceFormat format, DepthFormat depthFormat, int multiSampleCount, out SurfaceFormat selectedFormat, out DepthFormat selectedDepthFormat, out int selectedMultiSampleCount)
Parameters
graphicsProfileGraphicsProfileThe graphics profile.
formatSurfaceFormatThe requested surface format.
depthFormatDepthFormatThe requested depth stencil format.
multiSampleCountintThe requested multisample count.
selectedFormatSurfaceFormatSet to the best format supported by the adaptor for the requested surface format.
selectedDepthFormatDepthFormatSet to the best format supported by the adaptor for the requested depth stencil format.
selectedMultiSampleCountintSet to the best count supported by the adaptor for the requested multisample count.
Returns
- bool
True if the requested format is supported by the adaptor. False if one or more of the values was changed.