You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: backends/imgui_impl_vulkan.cpp
+2-1
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@
35
35
// CHANGELOG
36
36
// (minor and older changes stripped away, please see git history for details)
37
37
// 2023-XX-XX: Platform: Added support for multiple windows via the ImGuiPlatformIO interface.
38
+
// 2023-11-29: Vulkan: Fixed mismatching allocator passed to vkCreateCommandPool() vs vkDestroyCommandPool(). (#7075)
38
39
// 2023-11-10: *BREAKING CHANGE*: Removed parameter from ImGui_ImplVulkan_CreateFontsTexture(): backend now creates its own command-buffer to upload fonts.
39
40
// *BREAKING CHANGE*: Removed ImGui_ImplVulkan_DestroyFontUploadObjects() which is now unecessary as we create and destroy those objects in the backend.
40
41
// ImGui_ImplVulkan_CreateFontsTexture() is automatically called by NewFrame() the first time.
// - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them.
136
136
// - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple.
137
-
// - If the file cannot be loaded, the function will return NULL. Please handle those errors in your application (e.g. use an assertion, or display an error and quit).
137
+
// - If the file cannot be loaded, the function will return a nullptr. Please handle those errors in your application (e.g. use an assertion, or display an error and quit).
138
138
// - The fonts will be rasterized at a given size (w/ oversampling) and stored into a texture when calling ImFontAtlas::Build()/GetTexDataAsXXXX(), which ImGui_ImplXXXX_NewFrame below will call.
139
139
// - Use '#define IMGUI_ENABLE_FREETYPE' in your imconfig file to use Freetype for higher quality font rendering.
140
140
// - Read 'docs/FONTS.md' for more instructions and details.
//---- Pack colors to BGRA8 instead of RGBA8 (to avoid converting from one to another)
56
58
//#define IMGUI_USE_BGRA_PACKED_COLOR
57
59
58
-
//---- Use 32-bit for ImWchar (default is 16-bit) to support unicode planes 1-16. (e.g. point beyond 0xFFFF like emoticons, dingbats, symbols, shapes, ancient languages, etc...)
60
+
//---- Use 32-bit for ImWchar (default is 16-bit) to support Unicode planes 1-16. (e.g. point beyond 0xFFFF like emoticons, dingbats, symbols, shapes, ancient languages, etc...)
59
61
//#define IMGUI_USE_WCHAR32
60
62
61
63
//---- Avoid multiple STB libraries implementations, or redefine path/filenames to prioritize another version
#pragma clang diagnostic ignored "-Wreserved-identifier" // warning: identifier '_Xxx' is reserved because it starts with '_' followed by a capital letter
127
128
#elif defined(__GNUC__)
@@ -303,7 +304,7 @@ namespace ImGui
303
304
304
305
// Main
305
306
IMGUI_API ImGuiIO& GetIO(); // access the IO structure (mouse/keyboard/gamepad inputs, time, various configuration options/flags)
306
-
IMGUI_API ImGuiStyle& GetStyle(); // access the Style structure (colors, sizes). Always use PushStyleCol(), PushStyleVar() to modify style mid-frame!
307
+
IMGUI_API ImGuiStyle& GetStyle(); // access the Style structure (colors, sizes). Always use PushStyleColor(), PushStyleVar() to modify style mid-frame!
307
308
IMGUI_API voidNewFrame(); // start a new Dear ImGui frame, you can submit any command from this point until Render()/EndFrame().
308
309
IMGUI_API voidEndFrame(); // ends the Dear ImGui frame. automatically called by Render(). If you don't need to render data (skipping rendering) you may call EndFrame() without Render()... but you'll have wasted CPU already! If you don't need to render, better to not create any windows and not call NewFrame() at all!
309
310
IMGUI_API voidRender(); // ends the Dear ImGui frame, finalize the draw data. You can then get call GetDrawData().
@@ -994,6 +995,7 @@ namespace ImGui
994
995
995
996
// Debug Utilities
996
997
IMGUI_API voidDebugTextEncoding(constchar* text);
998
+
IMGUI_API voidDebugFlashStyleColor(ImGuiCol idx);
997
999
IMGUI_API boolDebugCheckVersionAndDataLayout(constchar* version_str, size_t sz_io, size_t sz_style, size_t sz_vec2, size_t sz_vec4, size_t sz_drawvert, size_t sz_drawidx); // This is called by IMGUI_CHECKVERSION() macro.
0 commit comments