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

Skip to content

Commit 20fa35e

Browse files
committed
Add remark regarding queue type for vkCmdBlitImage
1 parent cbb4e54 commit 20fa35e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

en/09_Generating_Mipmaps.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ vkCmdBlitImage(commandBuffer,
177177
178178
Now, we record the blit command. Note that `textureImage` is used for both the `srcImage` and `dstImage` parameter. This is because we're blitting between different levels of the same image. The source mip level was just transitioned to `VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL` and the destination level is still in `VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL` from `createTextureImage`.
179179
180+
Beware if you are using a dedicated transfer queue (as suggested in [Vertex buffers](!en/Vertex_buffers/Staging_buffer)): `vkCmdBlitImage` must be submitted to a queue with graphics capability.
181+
180182
The last parameter allows us to specify a `VkFilter` to use in the blit. We have the same filtering options here that we had when making the `VkSampler`. We use the `VK_FILTER_LINEAR` to enable interpolation.
181183
182184
```c++

0 commit comments

Comments
 (0)