Description
The VulkanGaussianBlur example appears to render incorrectly when the swapchain image height is less than the size of the texture (Lena) that is being blurred.
I believe this is because the default FB/swapchain image height is being used to determine the number of compute workgroups to dispatch, see here, rather than the dimensions of the image/texture being blurred, which leaves a portion of the output image from the compute pass uninitialised.
Repro steps
Run the example with the width/height CLI parameters with the height parameter set to less than 512 e.g.:
$ VulkanGaussianBlur -width=640 -height=480
Then observe that a number of rows at the top right-hand side are zero/black/uninitialised.
Environment
- SDK version: R24.1-v5.12 6e7a32d
- Operating System/Device: Windows
Description
The VulkanGaussianBlur example appears to render incorrectly when the swapchain image height is less than the size of the texture (Lena) that is being blurred.
I believe this is because the default FB/swapchain image height is being used to determine the number of compute workgroups to dispatch, see here, rather than the dimensions of the image/texture being blurred, which leaves a portion of the output image from the compute pass uninitialised.
Repro steps
Run the example with the width/height CLI parameters with the height parameter set to less than 512 e.g.:
$ VulkanGaussianBlur -width=640 -height=480Then observe that a number of rows at the top right-hand side are zero/black/uninitialised.
Environment