shader Model之间的比较

Shader model comparison

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

Pixel shader comparison

Pixel shader version1.0 to 1.31.42.02.0a2.0b3.0[2]4.0[3]
Dependent texture limit468Unlimited8UnlimitedUnlimited
Texture instruction limit46*232UnlimitedUnlimitedUnlimitedUnlimited
Position registerNoNoNoNoNoYesYes
Instruction slots8+48+432 + 64512512≥ 512≥ 65536
Executed instructions8+46*2+8*232 + 6451251265536Unlimited
Texture indirections444No limit4No LimitNo Limit
Interpolated registers2 + 82 + 82 + 82 + 82 + 81032
Instruction predicationNoNoNoYesNoYesNo
Index input registersNoNoNoNoNoYesYes
Temp registers2612 to 322232324096
Constant registers8832323222416x4096
Arbitrary swizzlingNoNoNoYesNoYesYes
Gradient instructionsNoNoNoYesNoYesYes
Loop count registerNoNoNoNoNoYesYes
Face register (2-sided lighting)NoNoNoNoNoYesYes
Dynamic flow controlNoNoNoNoNo24Yes
Bitwise OperatorsNoNoNoNoNoNoYes
Native IntegersNoNoNoNoNoNoYes
  • PS 2.0 = DirectX 9.0 original Shader Model 2 specification.
  • PS 2.0a = NVIDIA GeForce FX-optimized model.
  • PS 2.0b = ATI Radeon X700, X800, X850 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 versionVS 1.1VS 2.0VS 2.0aVS 3.0[2]VS 4.0[3]
# of instruction slots128256256≥ 5124096
Max # of instructions executed?????65536655366553665536
Instruction predicationNoNoYesYesYes
Temp registers121213324096
# constant registers≥ 96≥ 256≥ 256≥ 25616x4096
Static Flow Control ???YesYesYesYes
Dynamic Flow ControlNoNoYesYesYes
Dynamic Flow Control DepthNoNo2424Yes
Vertex Texture FetchNoNoNoYesYes
# of texture samplersN/AN/AN/A4128
Geometry instancing supportNoNoNoYesYes
Bitwise OperatorsNoNoNoNoYes
Native IntegersNoNoNoNoYes
  • VS 2.0 = DirectX 9.0 original Shader Model specification.
  • VS 2.0a = NVIDIA GeForce FX-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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值