为什么没有针对Linux的DirectX API? [英] Why is there no DirectX API for Linux?

查看:96
本文介绍了为什么没有针对Linux的DirectX API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

考虑到在用于现代视频卡的Windows系统上DirectX API的驱动程序端实现后,我想知道为什么在非Windows系统(尤其是Linux)上不能使用该实现.

Upon considering the driver side implementation for DirectX API on windows systems for modern video cards I was wondering why this implementation is not available on non-windows system, most notably linux.

由于显然没有此功能,所以我只能假设有一个我看不见的充分理由,但是以我的原始理解,我只是将DirectX调用视为硬件设备上的功能入口点而已.记录下来,我并不是指兼容性层(最著名的是WINE,我每天都为之惊叹的一个项目),而是一个直接进行硬件调用的库.

Since there is an obvious absence of this functionality I can only assume there is a good reason which I am blind to, but in my primitive understanding I simply see the DirectX calls as no more than function entry points on the hardware device. And for the record I am not referring to a compatibility layer (most notably WINE, a project I am amazed by every single day) but a library making direct hardware calls.

是否可以创建DirectX的开源版本?可以,但是很难吗?

Is it possible to create an open source version of directx? Would it be possible but obscenely difficult?

推荐答案

AFAIK,DirectX包含3个部分

AFAIK, the DirectX contains 3 parts

  • 供应商驱动程序(提供DX定义的低级API)
  • DirectX库(使用DX定义的低级API访问硬件,提供DirectX API)
  • 软件(使用DirectX API,例如游戏)

没有驱动程序提供Linux上DX定义的低级API,因此即使有可能提供DirectX库,但没有适当的供应商驱动程序也无法使用,而且我看不到是否有任何驱动程序供应商将为其硬件平台创建一个.

There are no driver providing the low level API defined by DX on linux, so even it is possible to provide the DirectX library, but it won't work without proper vendor driver, and I can't see if there is any vendor is going to create one for their hardware platform.

这篇关于为什么没有针对Linux的DirectX API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆