Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7eed288

Browse files
authored
Merge pull request #205 from maltekliemann/fix/typo-vkCmdBlitImage
Fix typo
2 parents cbb4e54 + ef70f04 commit 7eed288

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

en/09_Generating_Mipmaps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ transitionImageLayout(textureImage, VK_FORMAT_R8G8B8A8_SRGB, VK_IMAGE_LAYOUT_UND
7878
7979
Our texture image now has multiple mip levels, but the staging buffer can only be used to fill mip level 0. The other levels are still undefined. To fill these levels we need to generate the data from the single level that we have. We will use the `vkCmdBlitImage` command. This command performs copying, scaling, and filtering operations. We will call this multiple times to *blit* data to each level of our texture image.
8080
81-
`VkCmdBlit` is considered a transfer operation, so we must inform Vulkan that we intend to use the texture image as both the source and destination of a transfer. Add `VK_IMAGE_USAGE_TRANSFER_SRC_BIT` to the texture image's usage flags in `createTextureImage`:
81+
`vkCmdBlitImage` is considered a transfer operation, so we must inform Vulkan that we intend to use the texture image as both the source and destination of a transfer. Add `VK_IMAGE_USAGE_TRANSFER_SRC_BIT` to the texture image's usage flags in `createTextureImage`:
8282
8383
```c++
8484
...

0 commit comments

Comments
 (0)