> ## 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

Gaming Runtime 기능을 사용할 수 있는지 여부를 나타냅니다.

## 구문

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

### 매개 변수

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

쿼리할 Gaming Runtime 기능입니다.

### 반환 값

형식: bool

Gaming Runtime 기능을 사용할 수 있으면 **true**를 반환하고, 그렇지 않으면 **false**를 반환합니다.

## 설명

[XGameRuntimeInitialize](/reference/system/xgameruntimeinit/functions/xgameruntimeinitialize)로 Gaming Runtime을 초기화한 후, 이 함수를 사용하여 게임에서 사용할 수 있는 특정 Gaming Runtime 기능인지 확인합니다.

다음 예제는 **XGameRuntimeIsFeatureAvailable** 함수를 사용하여 Async, AsyncProvider 및 TaskQueue 기능을 사용할 수 있는지 여부를 확인합니다. 이 세 가지 기능은 모두 작업 큐를 사용하여 비동기 작업을 실행하는 데 필요합니다.

```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));

}
```

## 요구 사항

**헤더:** XGameRuntimeFeature.h

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, XBOX One 계열 콘솔 및 XBOX Series 콘솔

## 개념 문서

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

## 함께 보기

[Gaming Runtime 용어집](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/intro/gaming-runtime-glossary)\
[XGameRuntimeFeature 클래스](/reference/system/xgameruntimefeature/xgameruntimefeature_members)\
[XGameRuntimeFeature 열거형](/reference/system/xgameruntimefeature/enums/xgameruntimefeature)


## Related topics

- [XGameRuntimeFeature](/ko/reference/system/xgameruntimefeature/enums/xgameruntimefeature.md)
- [XGameRuntimeFeature (API contents)](/ko/reference/system/xgameruntimefeature/xgameruntimefeature_members.md)
- [GDK의 Windows Sockets 소개](/ko/build/console-features/networking/game-mesh/winsock-intro-networking.md)
- [GDK용 Unity C# API 래퍼](/ko/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XSystemRuntimeInfo](/ko/reference/system/xsystem/structs/xsystemruntimeinfo.md)
