From 1904a58011b10e9342735f9d161546c3d02c52fe Mon Sep 17 00:00:00 2001 From: Mark Oliver Mints <mmints@uni-koblenz.de> Date: Fri, 28 May 2021 18:01:28 +0200 Subject: [PATCH] [#33][Fix] Reset Attribute Description Format --- src/vkcv/PipelineManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vkcv/PipelineManager.cpp b/src/vkcv/PipelineManager.cpp index 4475e554..3d6a5f25 100644 --- a/src/vkcv/PipelineManager.cpp +++ b/src/vkcv/PipelineManager.cpp @@ -73,7 +73,7 @@ namespace vkcv uint32_t location = attachment.location; uint32_t binding = attachment.binding; uint32_t offset = attachment.offset; - VertexFormat format = attachment.format; + VertexFormat format = attachment.format; // TODO: Format -> Where does this belong? std::cout << "--------------------------------" << std::endl; std::cout << "Debug Print From PipelineManager" << std::endl; @@ -86,7 +86,7 @@ namespace vkcv // vertex input state vk::VertexInputBindingDescription vertexInputBindingDescription(binding, layout.stride, vk::VertexInputRate::eVertex); // TODO: What's with the input rate? - vk::VertexInputAttributeDescription vertexInputAttributeDescription(location, binding, static_cast<vk::Format>(format), offset); // TODO: Format -> cast to vk::Format? + vk::VertexInputAttributeDescription vertexInputAttributeDescription(location, binding, vk::Format::eR32G32B32Sfloat, offset); vk::PipelineVertexInputStateCreateInfo pipelineVertexInputStateCreateInfo( {}, // no vertex input until vertex buffer is implemented -- GitLab