Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GraphicsDeviceFeatures Struct

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

    Features supported by a GraphicsDevice.

    public struct GraphicsDeviceFeatures
    Remarks

    This class gives also features for a particular format, using the operator this[dxgiFormat] on this structure.

    Name Description
    Fields
    CurrentProfile

    Features level of the current device.

    HasComputeShaders

    Boolean indicating if this device supports compute shaders, unordered access on structured buffers and raw structured buffers.

    HasDepthAsReadOnlyRT

    Boolean indicating if the Depth buffer can directly be used as a read only RenderTarget

    HasDepthAsSRV

    Boolean indicating if the Depth buffer can also be used as ShaderResourceView for some passes.

    HasDoublePrecision

    Boolean indicating if this device supports shaders double precision calculations.

    HasDriverCommandLists

    Boolean indicating if this device supports command lists in multithreading scenarios.

    HasMultisampleDepthAsSRV

    Boolean indicating if the multi-sampled Depth buffer can directly be used as a ShaderResourceView

    HasMultiThreadingConcurrentResources

    Boolean indicating if this device supports concurrent resources in multithreading scenarios.

    HasResourceRenaming

    Boolean indicating if the graphics API supports resource renaming (with either WriteDiscard or Stride.Graphics.CommandList.UpdateSubresource(Stride.Graphics.GraphicsResource,System.Int32,Stride.Graphics.DataBox) with full size).

    HasSRgb

    Boolean indicating if this device supports SRGB texture and render targets.

    RequestedProfile

    Features level of the current device.

    Properties
    Item[PixelFormat]

    Gets the GraphicsDeviceFeatures.FeaturesPerFormat for the specified SharpDX.DXGI.Format.

    Methods
    ToString()
    | Improve this Doc View Source

    Fields


    CurrentProfile

    Features level of the current device.

    public GraphicsProfile CurrentProfile
    Field Value
    Type Description
    GraphicsProfile

    HasComputeShaders

    Boolean indicating if this device supports compute shaders, unordered access on structured buffers and raw structured buffers.

    public readonly bool HasComputeShaders
    Field Value
    Type Description
    System.Boolean

    HasDepthAsReadOnlyRT

    Boolean indicating if the Depth buffer can directly be used as a read only RenderTarget

    public readonly bool HasDepthAsReadOnlyRT
    Field Value
    Type Description
    System.Boolean

    HasDepthAsSRV

    Boolean indicating if the Depth buffer can also be used as ShaderResourceView for some passes.

    public readonly bool HasDepthAsSRV
    Field Value
    Type Description
    System.Boolean

    HasDoublePrecision

    Boolean indicating if this device supports shaders double precision calculations.

    public readonly bool HasDoublePrecision
    Field Value
    Type Description
    System.Boolean

    HasDriverCommandLists

    Boolean indicating if this device supports command lists in multithreading scenarios.

    public readonly bool HasDriverCommandLists
    Field Value
    Type Description
    System.Boolean

    HasMultisampleDepthAsSRV

    Boolean indicating if the multi-sampled Depth buffer can directly be used as a ShaderResourceView

    public readonly bool HasMultisampleDepthAsSRV
    Field Value
    Type Description
    System.Boolean

    HasMultiThreadingConcurrentResources

    Boolean indicating if this device supports concurrent resources in multithreading scenarios.

    public readonly bool HasMultiThreadingConcurrentResources
    Field Value
    Type Description
    System.Boolean

    HasResourceRenaming

    Boolean indicating if the graphics API supports resource renaming (with either WriteDiscard or Stride.Graphics.CommandList.UpdateSubresource(Stride.Graphics.GraphicsResource,System.Int32,Stride.Graphics.DataBox) with full size).

    public readonly bool HasResourceRenaming
    Field Value
    Type Description
    System.Boolean

    HasSRgb

    Boolean indicating if this device supports SRGB texture and render targets.

    public readonly bool HasSRgb
    Field Value
    Type Description
    System.Boolean

    RequestedProfile

    Features level of the current device.

    public GraphicsProfile RequestedProfile
    Field Value
    Type Description
    GraphicsProfile
    | Improve this Doc View Source

    Properties


    Item[PixelFormat]

    Gets the GraphicsDeviceFeatures.FeaturesPerFormat for the specified SharpDX.DXGI.Format.

    public readonly GraphicsDeviceFeatures.FeaturesPerFormat this[PixelFormat dxgiFormat] { get; }
    Parameters
    Type Name Description
    PixelFormat dxgiFormat

    The dxgi format.

    Property Value
    Type Description
    GraphicsDeviceFeatures.FeaturesPerFormat

    Features for the specific format.

    | Improve this Doc View Source

    Methods


    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()

    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