PrimitiveCreater supported newly VertexInputLayout
This commit is contained in:
parent
110c141073
commit
6bdbf87446
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user