PrimitiveCreater supported newly VertexInputLayout

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-05-04 19:10:22 +08:00
parent 110c141073
commit 6bdbf87446
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ namespace hgl
template<typename T>
T * CreateVADA(const AnsiString &name) ///<创建一个顶点属性缓冲区以及访问器
{
const VkFormat format=vil->GetFormat(name);
const VkFormat format=vil->GetVulkanFormat(name);
if(format!=T::GetVulkanFormat())
return(nullptr);

View File

@ -107,7 +107,7 @@ namespace hgl
Primitive *PrimitiveCreater::Finish()
{
const uint si_count=vil->GetAttrCount();
const uint si_count=vil->GetCount();
if(ssb_map.GetCount()!=si_count)
return(nullptr);
@ -118,7 +118,7 @@ namespace hgl
for(uint i=0;i<si_count;i++)
{
if((*sp)->value->vbo)
primitive->Set((*sp)->key,(*sp)->value->vbo);
primitive->Set((*sp)->key,(*sp)->value->vbo);
else
primitive->Set((*sp)->key,db->CreateVBO((*sp)->value->data));