Skip to content

[BUG] VulkanGaussianBlur rendering bug when running at lower resolutions #89

Description

@shaunh-inno

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.

image

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

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions