Repository navigation
Windows D3D11 渲染适配器选择与跨卡显示 - #42
Draft
zeno-are-you-ok wants to merge 2 commits into
Draft
zeno-are-you-ok wants to merge 2 commits into
zeno-are-you-ok wants to merge 2 commits into
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
4 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
为
media_kit_video增加 Windows D3D11 渲染适配器选择,并支持将另一块 GPU 上处理的帧传递到 Flutter 的显示适配器。VideoControllerConfiguration.windowsD3D11AdapterId: String?,默认null;省略或传null时保留现有 Flutter 适配器及共享句柄零拷贝路径。VideoController.getAvailableWindowsD3D11Adapters()和WindowsD3D11Adapter(id: String, name: String, dedicatedVideoMemoryMb: int)。ID 是不透明 DXGI LUID,不应解析或假设跨重启稳定;无法解析的旧 ID 会回退到 Auto,并通过VideoController.windowsVideoOutputErrors明确报告,不会静默选择其他适配器。playerHandle/message的错误事件。验证
flutter test test/video_controller_configuration_test.dart:2 项测试通过。测试时临时使用media_kit:source: system避免系统tar.exe不支持归档所需的 LZMA;临时配置已移除。dart analyze lib/src/video_controller:无错误;有 26 条 info,涉及文档注释和现有 Web API 弃用提示。/W4 /WX编译通过 6 个 Windows C++ 翻译单元:d3d11_renderer.cc、mailbox_swap_chain.cc、utils.cc、video_output.cc、video_output_manager.cc、media_kit_video_plugin.cc。git diff --check通过。flutter build windows --release未能完成:Flutter 要求 Windows 启用 Developer Mode/符号链接支持,当前环境未启用。未修改系统设置。最新提交:
d4e640c0863c9d76f5224f0c8382a35675a3d418。