Files
XCEngine/docs/api/rhi/enums/present-flags.md
2026-03-20 02:35:45 +08:00

40 lines
820 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# PresentFlags
**命名空间**: `XCEngine::RHI`
**类型**: `enum class`
**描述**: 显示标志枚举,定义帧显示的选项
## 概述
PresentFlags 枚举定义了_present_操作的标志用于控制交换链呈现行为。
## 枚举值
| 枚举值 | 描述 |
|--------|------|
| `None` | 无特殊标志 |
| `AllowTearing` | 允许垂直同步撕裂 |
| `StrictlyTimedFrame` | 严格计时帧 |
| `AllowDisplayLatencyWaitableObject` | 允许显示延迟等待对象 |
## 使用示例
```cpp
#include "RHI/RHIEnums.h"
void Example() {
PresentFlags flags = PresentFlags::AllowTearing;
if (flags == PresentFlags::None) {
// 标准呈现
}
}
```
## 相关文档
- [StoreAction](store-action.md) - 存储操作枚举
- [ResourceStates](resource-states.md) - 资源状态枚举