constant buffer 与globle buffer

1 view
Skip to first unread message

Xianyi Zhang

unread,
Mar 26, 2009, 9:12:50 AM3/26/09
to AMD-SPL
读取这两个buffer,是不是一读取,就是个128bit的值。与申请资源的时候,是FORMAT_FLOAT_4和FORMAT_INT_2等类型
没关系?也就是说,如果是int2的类型,读取一次,会将下一个int2的值也读取进来。
不像o1和i1等,会根据FORMAT_FLOAT_4和FORMAT_INT_2等类型,读取合适的位置?

程宏路

unread,
Mar 26, 2009, 9:34:33 AM3/26/09
to amd...@googlegroups.com
据我所知的 确是这样
 
> Date: Thu, 26 Mar 2009 06:12:50 -0700
> Subject: constant buffer 与globle buffer
> From: Traits...@gmail.com
> To: amd...@googlegroups.com

Jiawei Ou

unread,
Mar 26, 2009, 10:24:08 AM3/26/09
to amd...@googlegroups.com
这个问题中的gb和cb是指CAL的概念还是指SPL里面的GlobalBuffer对象和ConstBuffer对象?
如果是问CAL的概念,是这样的。

SPL中的ConstBuffer对象在CPU端有个缓存,会做data padding,把数据编排好以后再传送到GPU. GlobalBuffer对象暂时没有任何处理


Jiawei OU, School of Software Engineering, Tongji University

-----Original Message-----
From: amd...@googlegroups.com [mailto:amd...@googlegroups.com] On Behalf Of Xianyi Zhang
Sent: Thursday, March 26, 2009 9:13 PM
To: AMD-SPL
Subject: constant buffer 与globle buffer

Reply all
Reply to author
Forward
0 new messages