`
izuoyan
  • 浏览: 8934709 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

shader model 2_x

阅读更多

在2002年DirectX 9.0发布的时候,当时新增的shader model包括了shader model 2.0(vertex shader 2.0+pixel shader 2.0)、shader model 2.0a(也被称作shader model 2.0+或者shader model 2_x,即vertex shader 2.0a+pixel shader2.0a)以及shader model 3.0。DirectX9.0中的shader model 3.0只提供了参考渲染器,缺乏对硬件层的支持,直到DirectX 9.0b问世的时候依然只是供开发人员试验性的规格。shader model 2.0和shader model 2.0a分别对应的是R3X0/RV3X0体系和NV3X体系,后者在前者的基础上增加了更长的指令数。

DirectX 9.0c提供了shader model 3.0的硬件支持和新增了ATi R420对应的shader model 2.0b规格,其中Pixel Shader 2.0b由Veretex Shader 2.0 + Pixel Shader 2.0b组成。在以往,版本号高的shader model向下兼容版本号较低的shader model,例如shader 3.0的硬件必定支持shader 2.0的硬件,但是到了DX9.0c的时候,情况有了些微妙的变化,原因在于shader model 2.0b的规格其实并没有超出shader model 2.0a,这样一来,具备shader model 2.a支持的NV3X在理论上是能够跑相当部分的shader model 2.0b程序的,不过由于NV3X本身缺乏MRT(Multi Render Target)的支持,因此又有一些2.0的shader是跑不了的。

具备shader model 2.0b支持的RADEON X800能够支持512条Pixel Shader指令,但是由于RADEON X800的每条流水线具备了1个独立纹理单元、1个3D向量ALU和1个1D矢量ALU,因此在理论上的最大shader程序长度极限是512条贴图指令+512条算法指令+512条算法指令,共计1500条左右,相比之下,R3X0/RV3X0只能做到32条贴图指令+64条算法指令。

Pixel shader 2.0b是shader model 2.0b相对shader model 2.0的唯一改进之处,但是和pixel shader 2.0相比,指令长度的增加并非唯一的改进,在每个像素ALU的临时寄存器数量方面,Pixel Shader 2.0b从Pixel Shader 2.0的12个增加到了32个,比Pixel Shader 2.0a(NV3X)的22个相比多了10个,同时这也已经达到Pixel Shader 3.0的规格。

分享到:
评论

相关推荐

    HlslDecompiler:将Shader Model 3.0着色器反编译为HLSL代码(正在进行中)

    将Shader Model 3.0着色器反编译为HLSL代码 用法 HlslDecompiler [--ast] shader.fxc 程序将在shader.asm中输出程序集列表,例如 ps_3_0 def c0, 1, 0, 2, 0 dcl_texcoord v0.xz mov oC0.x, -v0.z_abs mad oC0.yzw,...

    Cxbx重新加载:Xbox(原始)模拟器

    GPU:Direct3D 9.0c(具有Pixel Shader Model 2.x和Vertex Shader Model 3.0)。先决条件 确保启用winpcap兼容模式!自动化构建Cxbx-Reloaded当前没有稳定的版本,但是您可以从“发行”选项卡或以下链接中获

    Unity5.X Shaders and Effect CookBook(Unity5.X着色器和屏幕特效教程)全新英文版

    Creating a basic Standard Shader 2 Migrating Legacy Shaders from Unity 4 to Unity 5 7 Adding properties to a shader 10 Using properties in a Surface Shader 14 Chapter 2: Surface Shaders and Texture ...

    opengl 期末复习资料

    5、 采用GPU编程,请说明Vertex Shader 和 Fragment Shader 的输入输出坐标系是什么? 输入输出的主要参数是什么? 如何实现Multi-Pass 渲染? 6、 在一个坐标系W中,光源的位置为 (0, 0, 200, 1.0),设模型为一个以...

    DirectX 11.1 Game Programming

    Paperback: 146 pages Publisher: Packt Publishing (August 26, 2013) Language: English ISBN-10: 184969480X ISBN-13: 978-1849694803...Understand shader model 5 and learn how to create an editor for the game

    VR Hands and FP Arms Pack

    Shaders need shader model 3.0+, hands also looks pretty at standard and mobile shaders. PBR Arms and Hands for female and male characters in standalone and mobile versions.. Assets use our custom ...

    SolarSystemPack

    Neutron Solar System Pack provides you with the assets that can help you to quickly make a simple solar system model, or other space scene. This pack includes: - The textures of the Sun, 8 planets, ...

    毕业设计-流体模拟.zip

    HLSL Shader Model 5.0 目前项目使用了下述代码库或文件: X_Jun的DirectX11 With Windows SDK教程:MKXJun/DirectX11-With-Windows-SDK: 现代DX11系列教程:使用Windows SDK(C++)开发Direct3D 11.x () ocornut/...

    ArcGIS支持的系统和数据库.doc

    " "Video/Graphic"Check your computer's ability to run ArcGIS " "s Adapter "24 bit capable graphics accelerator " " "OpenGL version 2.0 runtime and Shader Model 3.0 or " " "higher is recommended....

    第一章经典案例计算机配置方案(i学生作业).doc

    ANTEC VP450P 1 1 ¥349 显示器 三星 B2030W 1 ¥1129 鼠标 雷柏 V2游戏鼠标 1 ¥168 键盘 雷柏 V7键盘 1 ¥299 合计金额:6177元 主板集成了HD 4250显示芯片,支持DirectX 10.1, OpenGL 2.0, Shader Model 4.1, ...

    游戏编程精粹8--随书光盘源代码(part2/2)

    2.1 A Versatile and Interactive Anatomical Human Face Model 121 2.2 Curved Paths for Seamless Character Animation 132 2.3 Non-Iterative, Closed-Form, Inverse Kinematic Chain Solver (NCF IK) 141 ...

    matlab代码左移-OpenGL-Wrapper:OpenGL包装器

    3.x +管道的包装,只是为了易于使用。 后来,当我不得不处理各种任务时,添加了功能,功能变得更加全面。 由于它是针对单个项目设计的,因此可能会有很多错误。 包装OpenGL原始函数的代码位于src 。 提供更高级别...

    Volumetric Light Beam - 体积光照明特效

    - “3D噪声”功能要求着色器功能等于或高于Shader Model 3.5 / OpenGL ES 3.0。 2012年之后发布的任何移动设备都应该支持它。 - 仅在Unity 5.5或更高版本上支持“体积粉尘颗粒”。 - “动态遮挡”功能计算遮挡的近似...

    游戏编程精粹8--随书光盘源代码(part1/2)

    2.1 A Versatile and Interactive Anatomical Human Face Model 121 2.2 Curved Paths for Seamless Character Animation 132 2.3 Non-Iterative, Closed-Form, Inverse Kinematic Chain Solver (NCF IK) 141 ...

    BURNINTEST--硬件检测工具

    2) Double click (or Open) the downloaded ".exe" file 3) Follow the prompts UnInstallation ============== Use the Windows control panel, Add / Remove Programs Requirements ============ - Operating ...

Global site tag (gtag.js) - Google Analytics