Skip to content
Snippets Groups Projects
Commit f1543c1a authored by Mark Oliver Mints's avatar Mark Oliver Mints
Browse files

[#33][Update] Pass Binding and Attribute Description to VertexInfoState >> WIP

parent 1904a580
No related branches found
No related tags found
1 merge request!29Resolve "Pipeline Buffer Input"
Pipeline #25204 passed
...@@ -69,6 +69,7 @@ namespace vkcv ...@@ -69,6 +69,7 @@ namespace vkcv
VertexLayout layout = config.m_ShaderProgram.getVertexLayout(); VertexLayout layout = config.m_ShaderProgram.getVertexLayout();
std::unordered_map<uint32_t, VertexInputAttachment> attachments = layout.attachmentMap; std::unordered_map<uint32_t, VertexInputAttachment> attachments = layout.attachmentMap;
// TODO: Implement for all attachments
VertexInputAttachment attachment = attachments.at(0); VertexInputAttachment attachment = attachments.at(0);
uint32_t location = attachment.location; uint32_t location = attachment.location;
uint32_t binding = attachment.binding; uint32_t binding = attachment.binding;
...@@ -88,12 +89,13 @@ namespace vkcv ...@@ -88,12 +89,13 @@ namespace vkcv
vk::VertexInputBindingDescription vertexInputBindingDescription(binding, layout.stride, vk::VertexInputRate::eVertex); // TODO: What's with the input rate? vk::VertexInputBindingDescription vertexInputBindingDescription(binding, layout.stride, vk::VertexInputRate::eVertex); // TODO: What's with the input rate?
vk::VertexInputAttributeDescription vertexInputAttributeDescription(location, binding, vk::Format::eR32G32B32Sfloat, offset); vk::VertexInputAttributeDescription vertexInputAttributeDescription(location, binding, vk::Format::eR32G32B32Sfloat, offset);
// TODO: Add vertexInputBindingDescription and vertexInputAttributeDescription to pipelineVertexInputStateCreateInfo
vk::PipelineVertexInputStateCreateInfo pipelineVertexInputStateCreateInfo( vk::PipelineVertexInputStateCreateInfo pipelineVertexInputStateCreateInfo(
{}, // no vertex input until vertex buffer is implemented {},
0, // 1, 1,
nullptr, // &vertexInputBindingDescription, &vertexInputBindingDescription,
0, // 1, 1,
nullptr // &vertexInputAttributeDescription &vertexInputAttributeDescription
); );
// input assembly state // input assembly state
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment