Home -> IGraphicsDevice -> IsFeatureSupported
Description
The IsFeatureSupported method returns a boolean value indicating whether the indicated Feature is 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.
Important
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.
Warning
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 IsFeatureSupported(Feature feature) const;
Argument list
- feature [Feature]
- The device feature to test for support
Return value
- [bool]
- True if the device supports the feature, false otherwise.