Skip to content
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

Added SDL3 Vulkan Example #8084

Closed
wants to merge 5 commits into from

Conversation

SuperRonan
Copy link

@SuperRonan SuperRonan commented Oct 21, 2024

I added a SDL3 Vulkan example (ported the SDL2 Vulkan example).
I only added the main.cpp file. I don't want to mess with the VS solution/project (maybe we could port the examples from VS projects to CMakeLists? I think it works better with git)

I wrote this on top of #8053, but can be independant from it (two lines need to changed in the main.cpp).

…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
@SuperRonan
Copy link
Author

SuperRonan commented Oct 21, 2024

Oops! I realize it includes all the commits from #8053.

@SuperRonan
Copy link
Author

Closing this PR to keep only the docking one: #8085

@SuperRonan SuperRonan closed this Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant