VKBufferMap::Set改名为Bind,VABMap::SetVAB改名为BindVAB

This commit is contained in:
hyzboy 2025-06-17 00:58:36 +08:00
parent 91b056bacb
commit 585fd41966
4 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ public:
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;
offset=off;

View File

@ -54,7 +54,7 @@ public:
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

View File

@ -52,9 +52,9 @@ public:
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

View File

@ -82,7 +82,7 @@ VABMap *PrimitiveData::GetVABMap(const int vab_index)
if(!vab_list[vab_index])
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;