使用 Managed DirectX 确定适配器标识符

发布于 2024-08-10 04:03:04 字数 173 浏览 2 评论 0 原文

在单个显示器设置上创建新的托管 DirectX 设备很容易,我使用适配器标识符 0(或 Manager.Adapters.Default.Adapter)调用设备构造函数。

在多显示器设置中,我想创建具有正确适配器标识符 0 或 1 的设备,具体取决于当前使用的主显示器或辅助显示器。如何确定应使用哪个适配器 ID?

Creating a new Managed DirectX device on a single monitor setup is easy, I call the device constructor with adapter identifier 0 ( or Manager.Adapters.Default.Adapter).

On a multiple monitor setup I want to create the device with the correct adapter identifier 0 or 1, depending on the primary or secondary monitor being currently used. How can I determine which adapter id I should use?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄居人 2024-08-17 04:03:04

无法弄清楚如何使用 Managed DirectX 执行此操作,为 MonitorFromWindow 和 MonitorFromPoint 来执行此操作。

Couldn't figure out how to do this with Managed DirectX, wrote a wrapper for MonitorFromWindow and MonitorFromPoint to do it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文