|
|
@ -52,6 +52,9 @@ |
|
|
|
#else |
|
|
|
#include <vulkan/vulkan.h> |
|
|
|
#endif |
|
|
|
#if defined(VK_VERSION_1_3) || defined(VK_KHR_dynamic_rendering) |
|
|
|
#define IMGUI_IMPL_VULKAN_HAS_DYNAMIC_RENDERING |
|
|
|
#endif |
|
|
|
|
|
|
|
// Initialization data, for ImGui_ImplVulkan_Init()
|
|
|
|
// - VkDescriptorPool should be created with VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT,
|
|
|
@ -77,7 +80,9 @@ struct ImGui_ImplVulkan_InitInfo |
|
|
|
// (Optional) Dynamic Rendering
|
|
|
|
// Need to explicitly enable VK_KHR_dynamic_rendering extension to use this, even for Vulkan 1.3.
|
|
|
|
bool UseDynamicRendering; |
|
|
|
#ifdef IMGUI_IMPL_VULKAN_HAS_DYNAMIC_RENDERING |
|
|
|
VkPipelineRenderingCreateInfoKHR PipelineRenderingCreateInfo; |
|
|
|
#endif |
|
|
|
|
|
|
|
// (Optional) Allocation, Debugging
|
|
|
|
const VkAllocationCallbacks* Allocator; |
|
|
|