r/GraphicsProgramming • u/camilo16 • Feb 20 '22
Vulkan is not rendering but everything in the pipeline says it should?
For a little more detail I xposted on SO: https://stackoverflow.com/questions/71199354/vulkan-dynamic-rendering-nothing-seems-to-be-getting-rasterized
I am trying to render a triangle using the new dynamic rendering extension. Renderdoc shows that the vertex inputs are fine, it shows that there is no face culling, it shows the outputs are ok...
But at the end of the pipeline the attachments are unchanged, they are the default clear colors for every pixel and I am out of ideas.
How is it possible that the attribute inputs are ok and the rasterization is ok as well but that there is no output?
1
u/PGSkep Feb 20 '22
Can you turn off your depth checks? You might have cleared them to the wrong value, it would be nice if you could show what your outputs are before and after your draw call (texture viewer -> outputs)
1
1
1
u/PGSkep Feb 21 '22
Try changing color to red with aplha 1.0 to make sure your swapchain is working, and depth to 0 to check if your depth operations are correct
1
3
u/[deleted] Feb 20 '22
Ideas:
Your camera is not pointed at the scene
Your triangles are backwards (cw vs ccw)
You are not flipping your swapchain
You did not set up some part of the rasterization part correctly