Skip to content

Commit

Permalink
[update #100] dear_bindings 139b5b8
Browse files Browse the repository at this point in the history
  • Loading branch information
tiawl authored Dec 10, 2024
2 parents df72e00 + b544221 commit c4d17f1
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 117 deletions.
2 changes: 1 addition & 1 deletion .references/dcimgui
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0a5b58e
139b5b8
4 changes: 2 additions & 2 deletions dcimgui/backends/cimgui_impl_dx11.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ CIMGUI_IMPL_API void cImGui_ImplDX11_InvalidateDeviceObjects(void);
// [BETA] Selected render state data shared with callbacks.
// This is temporarily stored in GetPlatformIO().Renderer_RenderState during the ImGui_ImplDX11_RenderDrawData() call.
// (Please open an issue if you feel you need access to more data)
typedef struct ImGui_ImplDX11_RenderState_t
struct ImGui_ImplDX11_RenderState_t
{
ID3D11Device* Device;
ID3D11DeviceContext* DeviceContext;
ID3D11SamplerState* SamplerDefault;
} ImGui_ImplDX11_RenderState;
};
#endif// #ifndef IMGUI_DISABLE
#ifdef __cplusplus
} // End of extern "C" block
Expand Down
4 changes: 2 additions & 2 deletions dcimgui/backends/cimgui_impl_dx12.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ CIMGUI_IMPL_API void cImGui_ImplDX12_InvalidateDeviceObjects(void);
// [BETA] Selected render state data shared with callbacks.
// This is temporarily stored in GetPlatformIO().Renderer_RenderState during the ImGui_ImplDX12_RenderDrawData() call.
// (Please open an issue if you feel you need access to more data)
typedef struct ImGui_ImplDX12_RenderState_t
struct ImGui_ImplDX12_RenderState_t
{
ID3D12Device* Device;
ID3D12GraphicsCommandList* CommandList;
} ImGui_ImplDX12_RenderState;
};
#endif// #ifndef IMGUI_DISABLE
#ifdef __cplusplus
} // End of extern "C" block
Expand Down
4 changes: 2 additions & 2 deletions dcimgui/backends/cimgui_impl_sdlrenderer2.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ CIMGUI_IMPL_API void cImGui_ImplSDLRenderer2_DestroyDeviceObjects(void);
// [BETA] Selected render state data shared with callbacks.
// This is temporarily stored in GetPlatformIO().Renderer_RenderState during the ImGui_ImplSDLRenderer2_RenderDrawData() call.
// (Please open an issue if you feel you need access to more data)
typedef struct ImGui_ImplSDLRenderer2_RenderState_t
struct ImGui_ImplSDLRenderer2_RenderState_t
{
SDL_Renderer* Renderer;
} ImGui_ImplSDLRenderer2_RenderState;
};
#endif// #ifndef IMGUI_DISABLE
#ifdef __cplusplus
} // End of extern "C" block
Expand Down
4 changes: 2 additions & 2 deletions dcimgui/backends/cimgui_impl_sdlrenderer3.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ CIMGUI_IMPL_API void cImGui_ImplSDLRenderer3_DestroyDeviceObjects(void);
// [BETA] Selected render state data shared with callbacks.
// This is temporarily stored in GetPlatformIO().Renderer_RenderState during the ImGui_ImplSDLRenderer3_RenderDrawData() call.
// (Please open an issue if you feel you need access to more data)
typedef struct ImGui_ImplSDLRenderer3_RenderState_t
struct ImGui_ImplSDLRenderer3_RenderState_t
{
SDL_Renderer* Renderer;
} ImGui_ImplSDLRenderer3_RenderState;
};
#endif// #ifndef IMGUI_DISABLE
#ifdef __cplusplus
} // End of extern "C" block
Expand Down
20 changes: 10 additions & 10 deletions dcimgui/backends/cimgui_impl_vulkan.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ extern "C"
// and must contain a pool size large enough to hold an ImGui VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER descriptor.
// - When using dynamic rendering, set UseDynamicRendering=true and fill PipelineRenderingCreateInfo structure.
// [Please zero-clear before use!]
typedef struct ImGui_ImplVulkan_InitInfo_t
struct ImGui_ImplVulkan_InitInfo_t
{
VkInstance Instance;
VkPhysicalDevice PhysicalDevice;
Expand All @@ -103,7 +103,7 @@ typedef struct ImGui_ImplVulkan_InitInfo_t
const VkAllocationCallbacks* Allocator;
void (*CheckVkResultFn)(VkResult err);
VkDeviceSize MinAllocationSize; // Minimum allocation size. Set to 1024*1024 to satisfy zealous best practices validation layer and waste a little memory.
} ImGui_ImplVulkan_InitInfo;
};

typedef struct ImDrawData_t ImDrawData;
// Follow "Getting Started" link and check examples/ folder to learn about using backends!
Expand All @@ -130,12 +130,12 @@ CIMGUI_IMPL_API bool cImGui_ImplVulkan_LoadFunctionsEx(PFN_vkVoidFunction (*load
// [BETA] Selected render state data shared with callbacks.
// This is temporarily stored in GetPlatformIO().Renderer_RenderState during the ImGui_ImplVulkan_RenderDrawData() call.
// (Please open an issue if you feel you need access to more data)
typedef struct ImGui_ImplVulkan_RenderState_t
struct ImGui_ImplVulkan_RenderState_t
{
VkCommandBuffer CommandBuffer;
VkPipeline Pipeline;
VkPipelineLayout PipelineLayout;
} ImGui_ImplVulkan_RenderState;
};

//-------------------------------------------------------------------------
// Internal / Miscellaneous Vulkan Helpers
Expand Down Expand Up @@ -166,25 +166,25 @@ CIMGUI_IMPL_API int cImGui_ImplVulkanH_GetMinImageCountFromPresentMode
// Helper structure to hold the data needed by one rendering frame
// (Used by example's main.cpp. Used by multi-viewport features. Probably NOT used by your own engine/app.)
// [Please zero-clear before use!]
typedef struct ImGui_ImplVulkanH_Frame_t
struct ImGui_ImplVulkanH_Frame_t
{
VkCommandPool CommandPool;
VkCommandBuffer CommandBuffer;
VkFence Fence;
VkImage Backbuffer;
VkImageView BackbufferView;
VkFramebuffer Framebuffer;
} ImGui_ImplVulkanH_Frame;
};

typedef struct ImGui_ImplVulkanH_FrameSemaphores_t
struct ImGui_ImplVulkanH_FrameSemaphores_t
{
VkSemaphore ImageAcquiredSemaphore;
VkSemaphore RenderCompleteSemaphore;
} ImGui_ImplVulkanH_FrameSemaphores;
};

// Helper structure to hold the data needed by one rendering context into one OS window
// (Used by example's main.cpp. Used by multi-viewport features. Probably NOT used by your own engine/app.)
typedef struct ImGui_ImplVulkanH_Window_t
struct ImGui_ImplVulkanH_Window_t
{
int Width;
int Height;
Expand All @@ -203,7 +203,7 @@ typedef struct ImGui_ImplVulkanH_Window_t
uint32_t SemaphoreIndex; // Current set of swapchain wait semaphores we're using (needs to be distinct from per frame data)
ImGui_ImplVulkanH_Frame* Frames;
ImGui_ImplVulkanH_FrameSemaphores* FrameSemaphores;
} ImGui_ImplVulkanH_Window;
};
#endif// #ifndef IMGUI_DISABLE
#ifdef __cplusplus
} // End of extern "C" block
Expand Down
8 changes: 4 additions & 4 deletions dcimgui/backends/cimgui_impl_wgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ extern "C"
#ifndef IMGUI_DISABLE
#include <webgpu/webgpu.h> // Initialization data, for ImGui_ImplWGPU_Init()
typedef struct ImGui_ImplWGPU_InitInfo_ImDrawData_t ImGui_ImplWGPU_InitInfo_ImDrawData;
typedef struct ImGui_ImplWGPU_InitInfo_t
struct ImGui_ImplWGPU_InitInfo_t
{
WGPUDevice Device;
int NumFramesInFlight /* = 3 */;
WGPUTextureFormat RenderTargetFormat /* = WGPUTextureFormat_Undefined */;
WGPUTextureFormat DepthStencilFormat /* = WGPUTextureFormat_Undefined */;
WGPUMultisampleState PipelineMultisampleState /* = {} */;
} ImGui_ImplWGPU_InitInfo;
};

// Follow "Getting Started" link and check examples/ folder to learn about using backends!
CIMGUI_IMPL_API bool cImGui_ImplWGPU_Init(ImGui_ImplWGPU_InitInfo* init_info);
Expand All @@ -61,11 +61,11 @@ CIMGUI_IMPL_API void cImGui_ImplWGPU_InvalidateDeviceObjects(void);
// [BETA] Selected render state data shared with callbacks.
// This is temporarily stored in GetPlatformIO().Renderer_RenderState during the ImGui_ImplWGPU_RenderDrawData() call.
// (Please open an issue if you feel you need access to more data)
typedef struct ImGui_ImplWGPU_RenderState_t
struct ImGui_ImplWGPU_RenderState_t
{
WGPUDevice Device;
WGPURenderPassEncoder RenderPassEncoder;
} ImGui_ImplWGPU_RenderState;
};
#endif// #ifndef IMGUI_DISABLE
#ifdef __cplusplus
} // End of extern "C" block
Expand Down
Loading

0 comments on commit c4d17f1

Please sign in to comment.