1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Backends, Examples: WebGPU: simplified ifndef (#8381)

This commit is contained in:
ocornut 2025-11-07 13:24:10 +01:00
parent 635eb1d8e9
commit 86daa8930e
5 changed files with 10 additions and 10 deletions

View file

@ -105,7 +105,7 @@ const char* ImGui_ImplWGPU_GetLogLevelName(WGPULogLevel level);
#endif
// (Optional) Helper to create a surface on macOS/Wayland/X11/Window
#if defined(IMGUI_IMPL_WEBGPU_BACKEND_WGPU) || defined(IMGUI_IMPL_WEBGPU_BACKEND_DAWN) && !defined(__EMSCRIPTEN__)
#ifndef __EMSCRIPTEN__
struct ImGui_ImplWGPU_CreateSurfaceInfo
{
WGPUInstance Instance;
@ -116,6 +116,6 @@ struct ImGui_ImplWGPU_CreateSurfaceInfo
void* RawInstance; // 0 | 0 | 0 | HINSTANCE
};
WGPUSurface ImGui_ImplWGPU_CreateWGPUSurfaceHelper(ImGui_ImplWGPU_CreateSurfaceInfo* info);
#endif
#endif // #ifndef __EMSCRIPTEN__
#endif // #ifndef IMGUI_DISABLE