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

View File

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