Home > 未分类 > 修正对D3D10理解的严重错误。。。

修正对D3D10理解的严重错误。。。

1、使用register()标记cbuffer的绑定时,b#表示绑定到的slot,也就是XSSetConstantBuffer的参数1。c#用于指定buffer内部变量偏移量。
Type   Register Description
b   Constant buffer
t   Texture and texture buffer
c   Buffer offset
 
2、矩阵行列主序,仍然是应用程序transpose后在shader中才能直接dp4,可以在编译hlsl时指定D3D10_SHADER_PACK_MATRIX_COLUMN_MAJOR/ROW_MAJOR
Advertisements
Categories: 未分类
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: