Skip to content

Commit

Permalink
fix vertex attr offset
Browse files Browse the repository at this point in the history
  • Loading branch information
K1ngst0m committed Oct 8, 2023
1 parent 48845b7 commit 1074746
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/api/vulkan/pipeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ GraphicsPipelineCreateInfo::GraphicsPipelineCreateInfo(const std::vector<VertexC
{
VkVertexInputAttributeDescription desc = vertexComponmentMap[component];
desc.location = location;
desc.offset = bindingSize;
inputAttribute.push_back(desc);
location++;
bindingSize += vertexComponentSizeMap[component];
Expand Down

0 comments on commit 1074746

Please sign in to comment.