VulkanRenderer: Some fixes

This commit is contained in:
Jérôme Leclercq
2021-09-05 15:49:36 +02:00
parent 3af1cd80ee
commit a18d505ae2
2 changed files with 4 additions and 1 deletions

View File

@@ -218,6 +218,9 @@ namespace Nz
for (const auto& componentInfo : bufferData.declaration->GetComponents())
{
if (componentInfo.component == VertexComponent::Unused)
continue;
auto& bufferAttribute = vertexAttributes.emplace_back();
bufferAttribute.binding = binding;
bufferAttribute.location = locationIndex++;