> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameRuntimeIsFeatureAvailable

> XGameRuntimeIsFeatureAvailable

# XGameRuntimeIsFeatureAvailable

Indicates whether a Gaming Runtime feature is available.

## Syntax

```cpp theme={null}
bool XGameRuntimeIsFeatureAvailable(  
         XGameRuntimeFeature feature  
)  
```

### Parameters

*feature*   \
Type: [XGameRuntimeFeature](/reference/system/xgameruntimefeature/enums/xgameruntimefeature)

The Gaming Runtime feature to query.

### Return value

Type: bool

Returns **true** if the Gaming Runtime feature is available; **false** otherwise.

## Remarks

After the Gaming Runtime is initialized with [XGameRuntimeInitialize](/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize), use this function to check whether specific Gaming Runtime features are available to your game.

The following example uses the **XGameRuntimeIsFeatureAvailable** function to check whether the Async, AsyncProvider, and TaskQueue features are available. All three features are necessary for using task queues to run asynchronous tasks.

```cpp theme={null}
// Confirm that all of the features needed to run asynchronous tasks on 
// task queues are available.
bool Game::CheckAsyncTaskQueueFeatures()
{
    
    return (XGameRuntimeIsFeatureAvailable(XGameRuntimeFeature::XTaskQueue) &&
        XGameRuntimeIsFeatureAvailable(XGameRuntimeFeature::XAsyncProvider) &&
        XGameRuntimeIsFeatureAvailable(XGameRuntimeFeature::XAsync));

}
```

## Requirements

**Header:** XGameRuntimeFeature.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## Conceptual documentation

* [Intro to Game Chat 2](/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)

## See also

[Gaming Runtime Glossary](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/intro/gaming-runtime-glossary)\
[XGameRuntimeFeature class](/reference/system/xgameruntimefeature/xgameruntimefeature_members)\
[XGameRuntimeFeature enum](/reference/system/xgameruntimefeature/enums/xgameruntimefeature)


## Related topics

- [XGameRuntimeFeature](/reference/system/xgameruntimefeature/enums/xgameruntimefeature.md)
- [XGameRuntimeFeature (API contents)](/reference/system/xgameruntimefeature/xgameruntimefeature_members.md)
- [Introduction to Windows Sockets in the GDK](/build/console-features/networking/game-mesh/winsock-intro-networking.md)
- [GameInput frequently asked questions](/build/core-features/common/input/overviews/input-faq.md)
- [XSystemRuntimeInfo](/reference/system/xsystem/structs/xsystemruntimeinfo.md)
