renamed to IndexBufferAccess from IndexBufferData
This commit is contained in:
@@ -12,7 +12,7 @@ namespace hgl
|
||||
class MaterialInstance;
|
||||
class GPUDevice;
|
||||
struct VertexInputData;
|
||||
struct IndexBufferData;
|
||||
struct IndexBufferAccess;
|
||||
|
||||
struct RenderNode
|
||||
{
|
||||
|
@@ -59,7 +59,7 @@ using VAB=VertexAttribBuffer;
|
||||
|
||||
class IndexBuffer;
|
||||
|
||||
struct IndexBufferData
|
||||
struct IndexBufferAccess
|
||||
{
|
||||
IndexBuffer *buffer=nullptr;
|
||||
VkDeviceSize offset=0;
|
||||
|
@@ -170,7 +170,7 @@ public:
|
||||
return(true);
|
||||
}
|
||||
|
||||
void BindIBO(const IndexBufferData *);
|
||||
void BindIBO(const IndexBufferAccess *);
|
||||
|
||||
bool BindVBO(Renderable *);
|
||||
|
||||
|
@@ -14,12 +14,10 @@ struct PrimitiveData
|
||||
uint32_t vertex_count;
|
||||
|
||||
uint32_t va_count;
|
||||
|
||||
|
||||
|
||||
VABAccess *vab_list;
|
||||
|
||||
IndexBufferData index_buffer_data;
|
||||
IndexBufferAccess ib_access;
|
||||
|
||||
AABB BoundingBox;
|
||||
};
|
||||
@@ -38,7 +36,7 @@ protected:
|
||||
|
||||
VABAccessMap buffer_list;
|
||||
|
||||
IndexBufferData index_buffer_data;
|
||||
IndexBufferAccess ib_access;
|
||||
|
||||
AABB BoundingBox;
|
||||
|
||||
@@ -78,7 +76,7 @@ public:
|
||||
bool GetVABAccess (const AnsiString &,VABAccess *);
|
||||
const int GetBufferCount ()const {return buffer_list.GetCount();}
|
||||
|
||||
const IndexBufferData * GetIndexBufferData ()const {return &index_buffer_data;}
|
||||
const IndexBufferAccess * GetIndexBufferAccess()const {return &ib_access;}
|
||||
};//class Primitive
|
||||
VK_NAMESPACE_END
|
||||
#endif//HGL_GRAPH_VULKAN_PRIMITIVE_INCLUDE
|
||||
|
@@ -17,11 +17,11 @@ struct VertexInputData
|
||||
|
||||
uint32_t vertex_count;
|
||||
|
||||
const IndexBufferData *index_buffer;
|
||||
const IndexBufferAccess *ib_access;
|
||||
|
||||
public:
|
||||
|
||||
VertexInputData(const uint32_t,const uint32_t,const IndexBufferData *);
|
||||
VertexInputData(const uint32_t,const uint32_t,const IndexBufferAccess *);
|
||||
~VertexInputData();
|
||||
|
||||
const bool Comp(const VertexInputData *vid)const
|
||||
@@ -38,7 +38,7 @@ public:
|
||||
|
||||
if(vertex_count!=vid->vertex_count)return(false);
|
||||
|
||||
if(index_buffer!=vid->index_buffer)return(false);
|
||||
if(ib_access!=vid->ib_access)return(false);
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
@@ -1,9 +1,12 @@
|
||||
#ifndef HGL_VK_RENDERABLE_PRIMITIVE_CREATER_INCLUDE
|
||||
#ifndef HGL_VK_RENDERABLE_PRIMITIVE_CREATER_INCLUDE
|
||||
#define HGL_VK_RENDERABLE_PRIMITIVE_CREATER_INCLUDE
|
||||
|
||||
#include<hgl/graph/VKRenderResource.h>
|
||||
|
||||
VK_NAMESPACE_BEGIN
|
||||
/**
|
||||
* 可绘制图元创建器
|
||||
*/
|
||||
class RenderablePrimitiveCreater
|
||||
{
|
||||
RenderResource *rr;
|
||||
@@ -50,4 +53,4 @@ public:
|
||||
}
|
||||
};//class RenderablePrimitiveCreater
|
||||
VK_NAMESPACE_END
|
||||
#endif // HGL_VK_RENDERABLE_PRIMITIVE_CREATER_INCLUDE
|
||||
#endif // HGL_VK_RENDERABLE_PRIMITIVE_CREATER_INCLUDE
|
||||
|
Reference in New Issue
Block a user