added to check vertex format at VABConfig
This commit is contained in:
parent
2e0e38e4f6
commit
369bdfc39b
@ -102,7 +102,11 @@ VAB *VertexShaderModule::CreateVAB(const VABConfigInfo *cfg)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
attr->format =vac.format;
|
if(vac.format!=PF_UNDEFINED)
|
||||||
|
attr->format =vac.format;
|
||||||
|
else
|
||||||
|
attr->format =VK_NAMESPACE::GetVulkanFormat(&((*si)->type));
|
||||||
|
|
||||||
bind->inputRate =vac.instance?VK_VERTEX_INPUT_RATE_INSTANCE:VK_VERTEX_INPUT_RATE_VERTEX;
|
bind->inputRate =vac.instance?VK_VERTEX_INPUT_RATE_INSTANCE:VK_VERTEX_INPUT_RATE_VERTEX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user