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

Fix texture image view format #377

Closed ghost closed 3 months ago

ghost commented 3 months ago

The texture image view is set to VK_FORMAT_R8G8B8A8_SRGB. This should be changed to the swapChainImageFormat, since it is the format the image will be displayed in. If swapChainImageFormat is not equal to VK_FORMAT_R8G8B8A8_SRGB the final result will be incorrect (the colors will be off).