Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    GraphicsAdapter Class

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    Provides methods to retrieve and manipulate graphics adapters. This is the equivalent to SharpDX.DXGI.Adapter1.

    System.Object → DisposeBase → ComponentBase → GraphicsAdapter
    Derived from GraphicsAdapter:

    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

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    Overrides
    ComponentBase.ToString()

    Inherited Members

    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.Destroy()
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation