From 196de24461576edaa97637247979885b633d3905 Mon Sep 17 00:00:00 2001 From: nvaara <32382108+nvaara@users.noreply.github.com> Date: Mon, 6 Jan 2020 13:12:12 +0200 Subject: [PATCH] fixed vertexBindingDescription (#465) --- samples/utils/utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/utils/utils.cpp b/samples/utils/utils.cpp index d749183..162a31d 100644 --- a/samples/utils/utils.cpp +++ b/samples/utils/utils.cpp @@ -122,9 +122,10 @@ namespace vk std::vector 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