Skip to content

Typo in Index buffer Section #288

Closed
Closed

Description

@zixin96

Hello, I've found some inconsistencies between the text and the source code in the index buffer section.
1.

Using an index buffer for drawing involves two changes to createCommandBuffers. 

In the source code, we made changes to recordCommandBuffer instead of createCommandBuffers.

The text shows

vkCmdBindVertexBuffers(commandBuffers[i], 0, 1, vertexBuffers, offsets);
vkCmdBindIndexBuffer(commandBuffers[i], indexBuffer, 0, VK_INDEX_TYPE_UINT16);
vkCmdDrawIndexed(commandBuffers[i], static_cast<uint32_t>(indices.size()), 1, 0, 0, 0);

, but the source code shows:

vkCmdBindVertexBuffers(commandBuffer, 0, 1, vertexBuffers, offsets);
vkCmdBindIndexBuffer(commandBuffer, indexBuffer, 0, VK_INDEX_TYPE_UINT16);
vkCmdDrawIndexed(commandBuffer, static_cast<uint32_t>(indices.size()), 1, 0, 0, 0);

Thanks,
Zixin

Activity

  1. Overv commented on May 16, 2022

    @Overv
    Owner

    Thanks for reporting. I've fixed this and a bunch of other inconsistencies.

  2. added a commit that references this issue on Mar 8, 2023
    71120ad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions