From 585fd419669a74729300350b681a2a1c1a100289 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 17 Jun 2025 00:58:36 +0800 Subject: [PATCH] =?UTF-8?q?VKBufferMap::Set=E6=94=B9=E5=90=8D=E4=B8=BABind?= =?UTF-8?q?,VABMap::SetVAB=E6=94=B9=E5=90=8D=E4=B8=BABindVAB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/hgl/graph/VKBufferMap.h | 2 +- inc/hgl/graph/VKIndexBuffer.h | 2 +- inc/hgl/graph/VKVertexAttribBuffer.h | 4 ++-- src/SceneGraph/Vulkan/VKPrimitiveData.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) 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;