改名防止冲突

This commit is contained in:
2020-11-30 15:40:26 +08:00
parent 24d52b85e5
commit a4cfcb327a
2 changed files with 5 additions and 5 deletions

View File

@@ -14,17 +14,17 @@ VK_NAMESPACE_BEGIN
*/ */
class Renderable class Renderable
{ {
struct GPUBufferData struct VABData
{ {
VAB *buf; VAB *buf;
VkDeviceSize offset; VkDeviceSize offset;
public: public:
CompOperatorMemcmp(const GPUBufferData &); CompOperatorMemcmp(const VABData &);
}; };
Map<UTF8String,GPUBufferData> buffer_list; Map<UTF8String,VABData> buffer_list;
protected: protected:

View File

@@ -26,7 +26,7 @@ bool Renderable::Set(const UTF8String &name,VAB *vab,VkDeviceSize offset)
if(!vab)return(false); if(!vab)return(false);
if(buffer_list.KeyExist(name))return(false); if(buffer_list.KeyExist(name))return(false);
GPUBufferData bd; VABData bd;
bd.buf=vab; bd.buf=vab;
bd.offset=offset; bd.offset=offset;
@@ -40,7 +40,7 @@ VAB *Renderable::GetVAB(const UTF8String &name,VkDeviceSize *offset)
if(!offset)return(nullptr); if(!offset)return(nullptr);
if(name.IsEmpty())return(nullptr); if(name.IsEmpty())return(nullptr);
GPUBufferData bd; VABData bd;
if(buffer_list.Get(name,bd)) if(buffer_list.Get(name,bd))
{ {