Home -> IGraphicsDevice -> AreAllFeaturesSupported

Description

The AreAllFeaturesSupported method returns a boolean value indicating whether all the indicated Features are supported by the device. It is appropriate to test for optional support for a given device feature using this method, where your application can optionally use a feature if it is available, but can fallback to using an alternate approach if it is unavailable.

ImportantImportant

If your application cannot run without a certain optional feature, it is best to exclude devices which don't support the feature when selecting devices under the IGraphicsDeviceEnumerator interface, using either the FilterDevicesWithoutFeature method or the FilterDevicesWithoutAllFeatures method as appropriate.

WarningWarning

Just because an optional feature is available on a given device, doesn't mean it's automatically activated. Applications must request all optional features they intend to use when calling the CreateRenderer method, otherwise those features will not be activated even though they are available. Some underlying rendering APIs require this information, which allows them to potentially improve performance where some features which have a performance impact are not used.

Usage

bool AreAllFeaturesSupported(const std::set<Feature>& featureSet) const;

Argument list

featureSet [std::set<Feature>]
The set of device features to test for support

Return value

[bool]
True if the device supports all the features in the supplied feature set, false otherwise.

See also