Skip to content

Vulkan HDR Image present #392

@littecarlcai

Description

@littecarlcai

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions