VKBufferMap::Set改名为Bind,VABMap::SetVAB改名为BindVAB
This commit is contained in:
parent
91b056bacb
commit
585fd41966
@ -30,7 +30,7 @@ public:
|
|||||||
Unmap();
|
Unmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Set(T *buf,const int32_t off,const uint32_t s,const uint32_t c)
|
void Bind(T *buf,const int32_t off,const uint32_t s,const uint32_t c)
|
||||||
{
|
{
|
||||||
buffer=buf;
|
buffer=buf;
|
||||||
offset=off;
|
offset=off;
|
||||||
|
@ -54,7 +54,7 @@ public:
|
|||||||
|
|
||||||
void SetIBO(IndexBuffer *ib,const int32_t index_offset,const uint32_t count)
|
void SetIBO(IndexBuffer *ib,const int32_t index_offset,const uint32_t count)
|
||||||
{
|
{
|
||||||
VKBufferMap<IndexBuffer>::Set(ib,index_offset,ib->GetStride(),count);
|
VKBufferMap<IndexBuffer>::Bind(ib,index_offset,ib->GetStride(),count);
|
||||||
}
|
}
|
||||||
};//class IBMap
|
};//class IBMap
|
||||||
|
|
||||||
|
@ -52,9 +52,9 @@ public:
|
|||||||
|
|
||||||
const VkFormat GetFormat()const { return buffer->GetFormat(); }
|
const VkFormat GetFormat()const { return buffer->GetFormat(); }
|
||||||
|
|
||||||
void SetVAB(VAB *vab,const VkDeviceSize off,const uint32_t count)
|
void BindVAB(VAB *vab,const VkDeviceSize off,const uint32_t count)
|
||||||
{
|
{
|
||||||
VKBufferMap<VAB>::Set(vab,off,vab->GetStride(),count);
|
VKBufferMap<VAB>::Bind(vab,off,vab->GetStride(),count);
|
||||||
}
|
}
|
||||||
};//class VABMap
|
};//class VABMap
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ VABMap *PrimitiveData::GetVABMap(const int vab_index)
|
|||||||
if(!vab_list[vab_index])
|
if(!vab_list[vab_index])
|
||||||
return(nullptr);
|
return(nullptr);
|
||||||
|
|
||||||
vab_map->SetVAB(vab_list[vab_index],GetVertexOffset(),vertex_count);
|
vab_map->BindVAB(vab_list[vab_index],GetVertexOffset(),vertex_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
return vab_map;
|
return vab_map;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user