Overv / VulkanTutorial

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

Vulkan HDR Image present #392

Open littecarlcai opened 1 month ago

littecarlcai commented 1 month ago

Hello I want to use Vulkan to Present the HDR Image on HDR display device,but I found the result is not corret. the left side is vulkan result, the right side is a compared application result. image the SwapSurface Format used is: availableFormat.format == VK_FORMAT_R16G16B16A16_SFLOAT && availableFormat.colorSpace == VK_COLOR_SPACE_HDR10_ST2084_EXT the Image is pfm format, Use VK_FORMAT_R32G32B32_SFLOAT ImageFormat. createImage(texWidth, texHeight, VK_FORMAT_R32G32B32_SFLOAT, VK_IMAGE_TILING_OPTIMAL, VK_IMAGE_USAGE_TRANSFER_SRC_BIT|VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, textureImage, textureImageMemory); Do you have interesting to add a tutorial about how to render HDR image In Vulkan?