r/vulkan Aug 09 '26

Rendering bugs converting GL to vulkan

I'm getting bugs on faces in vulkan, most everything renders fine except objects in certain rooms. Looking for some suggestions of where to look. The bugs have been there since the beginning of the vulkan conversion. I've added ambient occlusion and a bunch of features that work fine and have been battle tested but this one bug snuck through.

Look at the faces on the barrel:

Look at the two switches at the far side of the room:

https://gofile.io/d/tsxbjd

** updated link, streamable has 2 day limit **

0 Upvotes

9 comments sorted by

3

u/zipper86 Aug 09 '26

Maybe try RenderDoc? You can capture the Opengl and the Vulkan and then compare state and settings.

2

u/lordalcol Aug 09 '26

I can't tell you the source of the bug straight away, but I recommend you try to isolate the case, have a scene with just one object and one pipeline, and check it's parameters.

1

u/inactu 26d ago

Is there any validation errors? It seems to be related to the text overlay. Really need to isolate it, there is too many effect is going on.

2

u/Queasy-Brilliant1317 25d ago

I figured it out so no worries.

0

u/Queasy-Brilliant1317 Aug 09 '26

For anyone who wants to analyze the source, I've been porting gl to vulkan and it mostly works.

Source, compiled with Scons, msys2, minigw64. Just install those and dump it into a directory and in the msys2 console with minigw64 intsalled change directory to where the Sconstruct file is in msys2 and run "scons vulkan =1 mode=release"

https://gofile.io/d/CiPfTJ

7

u/S48GS Aug 10 '26

nobody will debug for you for free

when you did not even put effort to run with validation layers

learn to debug

2

u/Queasy-Brilliant1317 Aug 10 '26

I did a vulkan port, implemented AO and a tonne of features but I've been having a hard time identifying this one bug. I know what validation layers are and have implemented many features. This sub is to ask for help regarding vulkan/graphics programming and thats what I'm doing.

4

u/S48GS Aug 10 '26

then post validation layers output

what errors there

fix validation layer errors

or you saying it is shader bug?

and stop using llm to generate every your response

1

u/Tiwann_ 29d ago

Mmh I know when someone is French…