开发团队为QEMU虚拟机实现了Triton,一款新的Windows DirectX 11驱动程序 [1]。Triton与此前开发的Neptune协议层结合,为Windows虚拟机提供了完整的DirectX 11图形加速支持 [1]。该方案通过实现DirectX设备驱动接口(DDI)而非API层,相比VirtualBox的中间码方案减少了转换步骤和出错机会 [1]。
这一解决方案解决了多个关键技术难题,包括DXBC着色器代码处理、跨进程共享纹理和同步栅栏等 [1]。驱动程序支持Linux和macOS主机 [1]。在macOS上实现此功能需要与DXMT或D3DMetal框架集成,并利用共享内存来实现跨进程纹理共享 [1]。
全部代码已开源 [1]。UTM将很快发布集成此功能的版本 [1]。
A development team has implemented Triton, a new Windows DirectX 11 driver for QEMU virtual machines that delivers full graphics acceleration support to Windows guests [1]. Working in conjunction with the previously developed Neptune protocol layer, Triton achieves this by implementing the DirectX device driver interface (DDI) rather than the API layer itself, a design choice that avoids the performance bottlenecks and compatibility issues encountered in earlier approaches [1].
The driver handles several technical challenges that had previously impeded DirectX support in virtual environments, including DXBC shader code processing, cross-process texture sharing, and synchronization fencing [1]. On macOS, the implementation integrates with either the DXMT or D3DMetal frameworks and employs shared memory to enable cross-process texture sharing [1]. The complete codebase is open source and supports both Linux and macOS host systems [1]. UTM, a QEMU-based virtualization tool, is expected to release an updated version with this functionality integrated in the near term [1].