Table of Contents

Method CheckFeatureSupport

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

CheckFeatureSupport<TFeatureData>(IDeviceEffectContext, in TFeatureData)

Checks whether an optional capability is supported by the D3D device.

public static TFeatureData CheckFeatureSupport<TFeatureData>(this IDeviceEffectContext effectContext, in TFeatureData feature = default) where TFeatureData : unmanaged, IDeviceFeatureData

Parameters

effectContext IDeviceEffectContext

The device effect context.

feature TFeatureData

The feature to check for. Use a value from the DeviceFeatures class.

Returns

TFeatureData

The feature data information.

Type Parameters

TFeatureData