-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vulkan: Re-Create main window pipeline and added optional color correction #8053
Vulkan: Re-Create main window pipeline and added optional color correction #8053
Conversation
…ction in the fragment shader API changes: - Added ImGui_ImplVulkan_ReCreateMainPipeline(...) to explicitly re-create the main window pipeline (when some of its properties are changed). - ImGui_ImplVulkan_ReCreateMainPipeline(...) does not implicitly use ImGui_ImplVulkan_InitInfo::PipelineRenderingCreateInfo, but a function parameter. - The main window pipeline is created only if possible during ImGui_ImplVulkan_Init(...) (if a render pass or rendering info are given), else it should be created with ImGui_ImplVulkan_ReCreateMainPipeline(...) before rendering) Concerning color correction: - The default behavior of imgui_impl_vulkan does not change (no color correction is applied). - A color correction method is decided at pipeline compile time (through a vulkan specialization constant) - Color correction parameters can either be set at pipeline compile time (static mode), or through push_constant (dynamic mode, default) - A gamma correction mode is implemented (and an extra alpha gamma correction). - New color modes can easily be added. # Conflicts: # backends/imgui_impl_vulkan.cpp
See the pull request for the docking branch. |
I see there are a number of other PR on a color correction ( #7904, #7826, #578, ...).
|
Yes this PR can be closed, now that there are #8061, #8111 (and #8110). |
To illustrate the changes:
Without color correction (the main window pipeline is simply recreated to fit the new swapchain format):
NoColorCorrection.mp4
With color correction:
WithColorCorrection.mp4