GraphicsAdapter Class
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Provides methods to retrieve and manipulate graphics adapters. This is the equivalent to SharpDX.DXGI.Adapter1.
public sealed class GraphicsAdapter : ComponentBase, IDisposable, IComponent, IReferencable, ICollectorHolder
Name | Description | |
---|---|---|
Properties | ||
AdapterUid | The unique id in the form of string of this device |
|
Description | Gets the description of this adapter. |
|
IsDefaultAdapter | Determines if this instance of GraphicsAdapter is the default adapter. |
|
Outputs | Gets the GraphicsOutput attached to this adapter |
|
VendorId | Gets or sets the vendor identifier. |
|
Methods | ||
IsProfileSupported(GraphicsProfile) | Tests to see if the adapter supports the requested profile. |
|
ToString() | Return the description of this adapter |
Properties
AdapterUid
The unique id in the form of string of this device
public string AdapterUid { get; }
Property Value
Type | Description |
---|---|
System.String |
Description
Gets the description of this adapter.
public string Description { get; }
Property Value
Type | Description |
---|---|
System.String | The description. |
IsDefaultAdapter
Determines if this instance of GraphicsAdapter is the default adapter.
public bool IsDefaultAdapter { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Outputs
Gets the GraphicsOutput attached to this adapter
public GraphicsOutput[] Outputs { get; }
Property Value
Type | Description |
---|---|
GraphicsOutput[] | The GraphicsOutput attached to this adapter. |
VendorId
Gets or sets the vendor identifier.
public int VendorId { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The vendor identifier. |
Methods
IsProfileSupported(GraphicsProfile)
Tests to see if the adapter supports the requested profile.
public bool IsProfileSupported(GraphicsProfile graphicsProfile)
Parameters
Type | Name | Description |
---|---|---|
GraphicsProfile | graphicsProfile | The graphics profile. |
Returns
Type | Description |
---|---|
System.Boolean | true if the profile is supported |
ToString()
Return the description of this adapter
public override string ToString()
Returns
Type | Description |
---|---|
System.String |