博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
shader Model之间的比较
阅读量:5938 次
发布时间:2019-06-19

本文共 2422 字,大约阅读时间需要 8 分钟。

Shader model comparison

(详见:http://en.wikipedia.org/wiki/High_Level_Shader_Language)

Pixel shader comparison

Pixel shader version 1.0 to 1.3 1.4 2.0 2.0a 2.0b 3.0 4.0
Dependent texture limit 4 6 8 Unlimited 8 Unlimited Unlimited
Texture instruction limit 4 6*2 32 Unlimited Unlimited Unlimited Unlimited
Position register No No No No No Yes Yes
Instruction slots 8+4 8+4 32 + 64 512 512 ≥ 512 ≥ 65536
Executed instructions 8+4 6*2+8*2 32 + 64 512 512 65536 Unlimited
Texture indirections 4 4 4 No limit 4 No Limit No Limit
Interpolated registers 2 + 8 2 + 8 2 + 8 2 + 8 2 + 8 10 32
Instruction predication No No No Yes No Yes No
Index input registers No No No No No Yes Yes
Temp registers 2 6 12 to 32 22 32 32 4096
Constant registers 8 8 32 32 32 224 16x4096
Arbitrary No No No Yes No Yes Yes
Gradient instructions No No No Yes No Yes Yes
Loop count register No No No No No Yes Yes
Face register (2-sided lighting) No No No No No Yes Yes
Dynamic flow control No No No No No 24 Yes
Bitwise Operators No No No No No No Yes
Native Integers No No No No No No Yes
  • PS 2.0 = DirectX 9.0 original Shader Model 2 specification.
  • PS 2.0a = NVIDIA -optimized model.
  • PS 2.0b = ATI shader model, DirectX 9.0b.
  • PS 3.0 = Shader Model 3.
  • PS 4.0 = Shader Model 4.

"32 + 64" for Executed Instructions means "32 texture instructions and 64 arithmetic instructions."

Vertex shader comparison

Vertex shader version VS 1.1 VS 2.0 VS 2.0a VS 3.0 VS 4.0
# of instruction slots 128 256 256 ≥ 512 4096
Max # of instructions executed ????? 65536 65536 65536 65536
No No Yes Yes Yes
Temp registers 12 12 13 32 4096
# constant registers ≥ 96 ≥ 256 ≥ 256 ≥ 256 16x4096
Static Flow Control  ??? Yes Yes Yes Yes
Dynamic Flow Control No No Yes Yes Yes
Dynamic Flow Control Depth No No 24 24 Yes
Vertex Texture Fetch No No No Yes Yes
# of texture samplers N/A N/A N/A 4 128
support No No No Yes Yes
Bitwise Operators No No No No Yes
Native Integers No No No No Yes
  • VS 2.0 = DirectX 9.0 original Shader Model specification.
  • VS 2.0a = NVIDIA -optimized model.
  • VS 3.0 = Shader Model 3.
    • Note that ATI X1000 series cards (e.g. X1900) does not support Vertex Texture Fetch, hence it does not fully comply with the VS 3.0 model. Instead, they offer a feature called "Render to Vertex Buffer (R2VB)" that provides functionality that is a superset of Vertex Texture Fetch.
  • VS 4.0 = Shader Model 4.

转载于:https://www.cnblogs.com/ActionFG/archive/2012/09/09/2677705.html

你可能感兴趣的文章
Redis 集群方法
查看>>
HDOJ 1064 Financial Management
查看>>
Jsoup代码解读之八-防御XSS攻击
查看>>
注册EBS应用表
查看>>
nodejs tutorial - 3 连接mongo 2015-3-24
查看>>
电商解读:为什么聚美优品一直在盈利?
查看>>
Linux下Mysql 5.5.15
查看>>
CAS服务端添加依赖注入配置
查看>>
python2 群发 html 或文本邮件
查看>>
sql 随机输出记录
查看>>
利用js获取浏览器高度和宽度值(多浏览器)代码大全
查看>>
网易惠惠购物助手:大数据实时更新框架概述
查看>>
Java-Spring-获取Request,Response对象
查看>>
C#连接Access数据库
查看>>
组策略管理——软件限制策略(5)
查看>>
onvif client Discovery实现
查看>>
命令行模式操作数据库
查看>>
安装PHP的错误
查看>>
我理解的--java策略模式
查看>>
JBPM(六)——掌握JBPM流程定义语言
查看>>