Files
XCEngine/docs/api/XCEngine/Editor/Platform/Platform.md

35 lines
1.1 KiB
Markdown
Raw Normal View History

2026-03-27 14:40:29 +08:00
# Platform
**命名空间**: `XCEngine::Editor::Platform`
**类型**: `submodule`
**描述**: 编辑器宿主平台层,当前主要围绕 Win32 窗口消息循环与 D3D12 窗口渲染路径实现。
## 概述
当前 `Platform` 子模块的角色非常直接:
- 提供 Win32 宿主窗口和消息循环入口
- 提供一个专用于编辑器的 D3D12 窗口渲染器
已文档化的核心类型/入口:
- [Win32EditorHost](Win32EditorHost/Win32EditorHost.md)
- [D3D12WindowRenderer](D3D12WindowRenderer/D3D12WindowRenderer.md)
- [Win32Utf8](Win32Utf8/Win32Utf8.md)
- [WindowsProcessDiagnostics](WindowsProcessDiagnostics/WindowsProcessDiagnostics.md)
## 当前实现边界
- 目前平台宿主明确偏向 Windows。
- 窗口渲染器明确绑定 D3D12。
- 这层更像编辑器宿主实现,不是跨平台窗口抽象框架。
- 编码转换、崩溃日志和 `stderr` 重定向也都放在这一层,体现出“编辑器宿主进程基础设施”这一定位。
## 相关文档
- [Editor 模块](../Editor.md)
- [Application](../Application/Application.md)
- [UI](../UI/UI.md)