Overv / VulkanTutorial

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

The triangle shown is just solid red, not multi-coloured #265

Closed Rubo3 closed 2 years ago

Rubo3 commented 2 years ago

I have a PC with an NVIDIA GeForce MX230 graphics card, running Arch Linux with the latest linux, nvidia, nvidia-utils, vulkan-icd-loader, glm, shaderc, glfw-wayland and vulkan-devel group packages. When I run the code at Rendering and presentation I get this solid red triangle instead of the expected one. Screenshot_20220131_231216 This is the result of vulkaninfo: info.txt

Rubo3 commented 2 years ago

The problem was just that in shader.frag I still had outColor = vec4(1.0, 0.0, 0.0, 1.0); instead of outColor = vec4(fragColor, 1.0);...