改名防止冲突
This commit is contained in:
@@ -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:
|
||||||
|
|
||||||
|
@@ -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))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user