GraphicsDeviceFeatures Struct
Namespace: Stride.GraphicsAssembly: 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() |
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 |
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. |
Methods
ToString()
public override string ToString()
Returns
Type | Description |
---|---|
System.String |