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

# XGameStreamingVideoFlags

> XGameStreamingVideoFlags

# XGameStreamingVideoFlags

指定支持的与视频相关的功能类型。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
enum class XGameStreamingVideoFlags : uint32_t
{
    None = 0x0,
    SupportsCustomAspectRatio = 0x1,
    SupportsPresentScaling = 0x2
}
```

<a id="constantsSection" />

## 常量

| 常量                        | 说明                                                                                                                                                                                                            |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| None                      | 无支持的功能。                                                                                                                                                                                                       |
| SupportsCustomAspectRatio | 客户端支持自定义纵横比。如果为 false，则客户端仅支持标准 16:9 分辨率。                                                                                                                                                                     |
| SupportsPresentScaling    | 如果 DirectCapture 支持使用 `D3D12XBOX_PRESENT_PLANE_PARAMETERS.pSrcViewRects` 和 `D3D12XBOX_PRESENT_PLANE_PARAMETERS.pDestPlacementBase` 来缩放视频参数，则为 True。如果为 false，请确保呈现分辨率与传递给 XGameStreamingSetResolution 的分辨率匹配。 |

<a id="remarksSection" />

## 备注

此枚举用于指示支持哪些与视频相关的功能。

<a id="requirementsSection" />

## 要求

**标头：** XGameStreaming.h

**支持的平台**：Windows、XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

[XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members)\
[XGameStreamingDisplayDetails](/reference/system/xgamestreaming/structs/xgamestreamingdisplaydetails)\
[XGameStreamingGetDisplayDetails](/reference/system/xgamestreaming/functions/xgamestreaminggetdisplaydetails)


## Related topics

- [XGameStreamingDisplayDetails](/zh-CN/reference/system/xgamestreaming/structs/xgamestreamingdisplaydetails.md)
- [XGameStreaming](/zh-CN/reference/system/xgamestreaming/xgamestreaming_members.md)
- [D3D12_COMMAND_LIST_SUPPORT_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_command_list_support_flags_public.md)
- [DirectCapture 概述](/zh-CN/build/core-features/common/game-streaming/game-streaming-directcapture-overview.md)
- [使用 PIX 进行可持续性分析](/zh-CN/build/game-principles/sustainability/sustainability-pix-guide.md)
