Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.15k stars 515 forks source link

Backface culling behavior change? #311

Open eisrational opened 1 year ago

eisrational commented 1 year ago

In the Descriptor pool and sets chapter, under Using descriptor sets, it is mentioned that before the following lines

rasterizer.cullMode = VK_CULL_MODE_BACK_BIT;
rasterizer.frontFace = VK_FRONT_FACE_COUNTER_CLOCKWISE;

are added, that nothing would show up. However, the square is rendered as one would expect, and the result is (to me) indifferent to what we see after these lines are added.

Has there been a change in the implementation by the driver (or at some other layer in the software stack) so that this doesn't happen anymore?

Calinou commented 1 year ago

Has there been a change in the implementation by the driver (or at some other layer in the software stack) so that this doesn't happen anymore?

On NVIDIA 535.54.03 on Linux, I still need those lines for the rectangle to show up.

Can you link to your full code? Make sure you flipped the GLM projection's sign in updateUniformBuffer(), as requested by the tutorial.