diff --git a/inc/hgl/graph/VKBufferMap.h b/inc/hgl/graph/VKBufferMap.h index 3759f3d4..9e001f3d 100644 --- a/inc/hgl/graph/VKBufferMap.h +++ b/inc/hgl/graph/VKBufferMap.h @@ -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; diff --git a/inc/hgl/graph/VKIndexBuffer.h b/inc/hgl/graph/VKIndexBuffer.h index aabb2998..ffd044ad 100644 --- a/inc/hgl/graph/VKIndexBuffer.h +++ b/inc/hgl/graph/VKIndexBuffer.h @@ -54,7 +54,7 @@ public: void SetIBO(IndexBuffer *ib,const int32_t index_offset,const uint32_t count) { - VKBufferMap::Set(ib,index_offset,ib->GetStride(),count); + VKBufferMap::Bind(ib,index_offset,ib->GetStride(),count); } };//class IBMap diff --git a/inc/hgl/graph/VKVertexAttribBuffer.h b/inc/hgl/graph/VKVertexAttribBuffer.h index fa0120c1..d5f0f250 100644 --- a/inc/hgl/graph/VKVertexAttribBuffer.h +++ b/inc/hgl/graph/VKVertexAttribBuffer.h @@ -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::Set(vab,off,vab->GetStride(),count); + VKBufferMap::Bind(vab,off,vab->GetStride(),count); } };//class VABMap diff --git a/src/SceneGraph/Vulkan/VKPrimitiveData.cpp b/src/SceneGraph/Vulkan/VKPrimitiveData.cpp index 9ede45b9..d6aac87e 100644 --- a/src/SceneGraph/Vulkan/VKPrimitiveData.cpp +++ b/src/SceneGraph/Vulkan/VKPrimitiveData.cpp @@ -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;