preparing resume PrimitiveData
This commit is contained in:
@@ -14,6 +14,12 @@ VK_NAMESPACE_BEGIN
|
||||
*
|
||||
* 一类是传统的,使用独统的独立VAB的
|
||||
* 一类是使用VDM的
|
||||
*
|
||||
*
|
||||
*
|
||||
* WIP: *** 1.将数据全部转移到PrimitiveData,完成旧的渲染测试
|
||||
* 2.改成抽象类,将独立VAB的做成一个实现
|
||||
* 3.实现VDM支持
|
||||
*/
|
||||
class Primitive
|
||||
{
|
||||
|
@@ -52,28 +52,16 @@ public:
|
||||
hgl_zero(*this);
|
||||
}
|
||||
|
||||
const int GetVABIndex(const char *name)const
|
||||
const int GetVABIndex(const AnsiString &name)const{return vil->GetIndex(name);}
|
||||
|
||||
VABAccess *GetVAB(const AnsiString &name)
|
||||
{
|
||||
for(int i=0;i<va_count;i++)
|
||||
{
|
||||
if(hgl::strcmp(vab_list[i].va_name,name)==0)
|
||||
return(i);
|
||||
}
|
||||
|
||||
return(-1);
|
||||
}
|
||||
|
||||
VABAccess *GetVAB(const char *name)
|
||||
{
|
||||
if(!name||!*name)
|
||||
return(nullptr);
|
||||
|
||||
const int index=GetVABIndex(name);
|
||||
|
||||
if(index==-1)
|
||||
return(nullptr);
|
||||
|
||||
return &(vab_list[index].vab_access);
|
||||
return vab_access+index;
|
||||
}
|
||||
|
||||
const int AddVAB(const char *name,VAB *vab,VkDeviceSize start=0)
|
||||
|
Reference in New Issue
Block a user