r/GraphicsProgramming • • 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?

0 Upvotes

8 comments sorted by

3

u/[deleted] Feb 20 '22

Ideas:

  1. Your camera is not pointed at the scene

  2. Your triangles are backwards (cw vs ccw)

  3. You are not flipping your swapchain

  4. You did not set up some part of the rasterization part correctly

1

u/camilo16 Feb 20 '22
  1. Already checked, renderdoc shows the vertices are in frame (said in post)

  2. face culling is disabled (said in post)

  3. That would explain presentation rendering black, but it does not explain that the final output of the draw command is empty. i.e. if I am already rendering to the swapchain image, renderdoc should show something rendered at the end, even if my program itself never swaps the images and thus renders balck.

  4. What could I check, there are no validation layers being triggered at the moment, renderdoc shows the polygon type is triangles. And I checked the rasterization settings on RDOC and it seemed fine :C

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

u/camilo16 Feb 20 '22

I already disabled depth testing :c.

1

u/PGSkep Feb 20 '22

What are you clearing your buffers to?

1

u/camilo16 Feb 21 '22

color buffer to 0,0,0,0 depth buffer to 1, stencil to 0

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

u/[deleted] Feb 21 '22

What’s your blend mask