Skip to content

Fix Vulkan screenshot capture - #167

Merged
anirul merged 1 commit into
masterfrom
codex/fix-vulkan-screenshot
Apr 22, 2026
Merged

Fix Vulkan screenshot capture#167
anirul merged 1 commit into
masterfrom
codex/fix-vulkan-screenshot

Conversation

@anirul

@anirul anirul commented Apr 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • implement Vulkan screenshot readback from the swapchain preview image
  • fix PNG saving for BGR/BGRA pixel layouts used by Vulkan swapchain output
  • add a regression test for BGRA image export

Validation

  • cmake --build --preset windows-debug --target FrameFileTest FrameVulkanTest 00_Cubemap --config Debug
  • ctest --test-dir build/windows -C Debug --output-on-failure -R "ImageTest\.SaveBgrAlphaImageWritesValidPng|VulkanCommandQueueTest\.(CopiesBufferContents|TransitionsAndCopiesToImage)"
  • ./build/windows/bin/Debug/00_Cubemap.exe --device=vulkan --auto_exit_seconds=1 --screenshot_on_exit

Notes

  • Verified end-to-end that the Vulkan sample writes ScreenShot.png before exit.
  • No generated artifacts are included in this PR.

@anirul
anirul merged commit 8a6302d into master Apr 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant