fixed vertexBindingDescription (#465)

This commit is contained in:
nvaara 2020-01-06 13:12:12 +02:00 committed by Andreas Süßenbach
parent 499d4bb33d
commit 196de24461

View File

@ -122,9 +122,10 @@ namespace vk
std::vector<vk::VertexInputAttributeDescription> vertexInputAttributeDescriptions;
vk::PipelineVertexInputStateCreateInfo pipelineVertexInputStateCreateInfo;
vk::VertexInputBindingDescription vertexInputBindingDescription(0, vertexStride);
if (0 < vertexStride)
{
vk::VertexInputBindingDescription vertexInputBindingDescription(0, vertexStride);
vertexInputAttributeDescriptions.reserve(vertexInputAttributeFormatOffset.size());
for (uint32_t i=0 ; i<vertexInputAttributeFormatOffset.size() ; i++)
{