Dict.CN 在线词典, 英语学习, 在线翻译

学海苦作舟,书山勤为径

留下点回忆

常用链接

统计

积分与排名

Denoise

English study

Web技术

数据压缩

一些连接

最新评论

D3D入门-D3D介绍

1.   D3D入门

本节提供一个对D3D图形编程接口(API)的简短介绍。这里你将发现一个图形管道的概貌以及帮助你实现基本D3D功能的指南。

1.1. D3D架构

本节包含MicrosoftD3D组件、其他Microsoft DirectX、操作系统和系统硬件之间的关系;下面将讨论这些主题。

1.1.1.    D3D的架构概览

这是一个图形管道的描述。每个块的功能性在下面介绍,连接包含更多的信息。

 

更多关于D3D的可编程节的架构见《可编程顶点梯度架构》和《可编程像素梯度架构》。

 D3D Framework.JPG

1.1.2.    硬件抽象层

微软的D3D通过HAL(硬件抽象层)提供设备独立;HAL是由设备制造商提供的设备指定接口,D3D直接使用显示硬件来工作。程序才能不需要和HAL交互。应用程序使用D3D暴露的一系列接口和方法而不是HAL提供的机制来使用显示设备。设备制造商在WINDOWS的各个平台上(XP200098等)上实现32位的编程。HAL可以是显示驱动器的一部分或和设备驱动器通过一个驱动器生产商定义的接口来通讯的独立DLL

D3D HAL由芯片制造商、主板生产商或OEM实现。HAL仅仅实现设备依赖的代码并在不竞争的执行。如果硬件没有执行一个功能,HAL就不会将其作为硬件功能来报告。另外,HAL并不验证参数,D3D在调用HAL之前执行参数验证。

在微软DirectX 9HAL可以有三种不同的顶点处理模式:软件顶点处理、硬件顶点处理和同一个设备上的混合顶点处理。纯设备模式是HAL设备的变量。纯设备类型仅仅支持硬件顶点处理,并仅仅允许应用程序查询设备状态的一个小的子集。另外,纯设备仅仅在有最小化容量级别的适配器上可用。

1.1.3.    系统整体

下图显示了微软D3DGDIHAL以及硬件之间的关系。

在上图中,我们看到,D3D程序和GDI程序一样都通过显示卡的设备驱动来访问图形硬件。与GDI不同的是,D3D可以在选择一个HAL设备的时候利用硬件特性,HAL设备提供了基于显示卡支持的硬件加速。你可以通过D3D在运行的时候来决定设备是否有这个能力。

关于设备的更多信息参见设备类型。
D3D System.JPG

                                                      2006年2月15日

posted on 2006-02-15 23:16 笨笨 阅读(2334) 评论(2)  编辑 收藏 引用 所属分类: DirectX3D

评论

# re: D3D入门-D3D介绍 2006-02-16 10:55 junyuan

flash制作 http://www.junyuan.com.cn/flash_mk/index.htm
网站建设 http://www.junyuan.com.cn/site_con/index.htm
网页设计 http://www.junyuan.com.cn/design/index.htm
企业上网 http://www.junyuan.com.cn/web/index.htm
邮局 http://www.junyuan.com.cn/mailbox
网络公司 http://www.junyuan.com.cn/company/index.htm
电子商务 http://www.junyuan.com.cn/ebiz/index.htm
网页制作 http://www.junyuan.com.cn/page/index.htm">http://www.junyuan.com.cn/page/index.htm
动画设计 http://www.junyuan.com.cn/ani_dsgn/index.htm
企业邮局 http://www.junyuan.com.cn/e_mail/index.htm">http://www.junyuan.com.cn/e_mail/index.htm
动画制作 http://www.junyuan.com.cn/ani_mk/index.htm
网站制作 http://www.junyuan.com.cn/site/index.htm
企业邮局 http://www.junyuan.com.cn/e_mail/index.htm">http://www.junyuan.com.cn/e_mail/index.htm
网页制作 http://www.junyuan.com.cn/page/index.htm">http://www.junyuan.com.cn/page/index.htm
电子信箱 http://www.junyuan.com.cn/email/index.htm
网站设计 http://www.junyuan.com.cn/site_design/index.htm
上海网站建设http://www.junyuan.com.cn/site_con/index1.htm
网页设计公司http://www.junyuan.com.cn/design/index2.htm
网站设计公司http://www.junyuan.com.cn/site_design/index2.htm
动画设计公司http://www.junyuan.com.cn/ani_dsgn/index2.htm
动画制作公司http://www.junyuan.com.cn/ani_mk/index2.htm
网站制作公司http://www.junyuan.com.cn/site/index2.htm
条码打印机 http://www.toshiba-tec.com.cn/company/company.asp
上海别墅 http://www.opal-villa.com/index.htm
迪斯尼 http//www.opal-villa.com/index4.htm
程序开发 http://www.junyuan.com.cn/program/index.htm
建站 http://www.junyuan.com.cn/cnstrct/index.htm
网站建立 http://www.junyuan.com.cn/website/index.htm
建立网站 http://www.junyuan.com.cn/website/index1.htm
川沙 http://www.opal-villa.com/index3.htm
上海自考 http://www.newtimes-sh.com
建网 http://www.junyuan.com.cn/chinaweb/index.htm
上海建网 http://www.junyuan.com.cn/chinaweb/index1.htm
建网公司 http://www.junyuan.com.cn/chinaweb/index2.htm
上海建网公司http://www.junyuan.com.cn/chinaweb/index3.htm  回复  更多评论   

# re: D3D入门-D3D介绍 2007-02-11 17:26 韩介

饿有他日有和日他和
  回复  更多评论   


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理