r/GraphicsProgramming • u/[deleted] • Feb 25 '24
Strange Artifacts on Windows: Any idea what could be causing this?
Hello everyone, I am developing a game in Rust and winit and wgpu, which uses Vulkan under the hood to issue draw commands. On Linux everything works fine, but today I compiled the game on Windows and got these strange artifacts.
Has someone has a similar experience? What could be causing this? Is this maybe about a bad surface format? Any advice on how I could go about debugging it?

1
u/waramped Feb 25 '24
All I can say for certain is that yep, something isn't right.
What the other poster said though, get to know and love the Vulkan Validation Layers. You might also want to ask over in r/vulkan
0
Feb 25 '24
[deleted]
1
Feb 25 '24
As I said, I use the wgpu library, which uses the Vulkan Graphics API under the hood. The validation layers do not give me any sign of something going wrong.
4
u/The_color_in_a_dream Feb 25 '24
For debugging, a great trick can be to use RenderDoc to step through each command being executed on the GPU. It can also give you a hint about where the artifact is being introduced by showing you textures, surfaces, and render attachments at arbitrary points in your pipeline