Layout codes.

This commit is contained in:
hyzboy 2024-05-05 04:37:04 +08:00
parent 40094a7529
commit 03491dbed8
2 changed files with 226 additions and 236 deletions

View File

@ -1,15 +1,11 @@
#ifndef HGL_GRAPH_PRIMITIVE_CREATER_INCLUDE #pragma once
#define HGL_GRAPH_PRIMITIVE_CREATER_INCLUDE
#include<hgl/graph/VKRenderResource.h> #include<hgl/graph/VKRenderResource.h>
#include<hgl/graph/VertexAttribDataAccess.h> #include<hgl/graph/VertexAttribDataAccess.h>
#include<hgl/graph/VKShaderModule.h> #include<hgl/graph/VKShaderModule.h>
#include<hgl/graph/VKIndexBuffer.h> #include<hgl/graph/VKIndexBuffer.h>
namespace hgl VK_NAMESPACE_BEGIN
{
namespace graph
{
class VertexDataManager; class VertexDataManager;
/** /**
@ -93,6 +89,4 @@ namespace hgl
virtual Primitive * Finish(const AnsiString &); ///<结束并创建可渲染对象 virtual Primitive * Finish(const AnsiString &); ///<结束并创建可渲染对象
};//class PrimitiveCreater };//class PrimitiveCreater
}//namespace graph VK_NAMESPACE_END
}//namespace hgl
#endif//HGL_GRAPH_PRIMITIVE_CREATER_INCLUDE

View File

@ -4,10 +4,7 @@
#include<hgl/graph/VKPrimitive.h> #include<hgl/graph/VKPrimitive.h>
#include<hgl/graph/VertexDataManager.h> #include<hgl/graph/VertexDataManager.h>
namespace hgl VK_NAMESPACE_BEGIN
{
namespace graph
{
PrimitiveCreater::PrimitiveCreater(RenderResource *sdb,const VIL *v) PrimitiveCreater::PrimitiveCreater(RenderResource *sdb,const VIL *v)
{ {
device =sdb->GetDevice(); device =sdb->GetDevice();
@ -198,5 +195,4 @@ namespace hgl
return primitive; return primitive;
} }
}//namespace graph VK_NAMESPACE_END
}//namespace hgl