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

Backends, Examples: WebGPU: header optimization. Added the code for using Dawn “pre-built” library. (#8381)

This commit is contained in:
BrutPitt 2025-11-01 10:43:26 +01:00 committed by ocornut
parent f1becf7e4b
commit 3cc8b470a6
5 changed files with 133 additions and 113 deletions

View file

@ -53,7 +53,6 @@
#include "imgui_impl_wgpu.h"
#include <limits.h>
#include <stdio.h>
#include <webgpu/webgpu.h>
// One of IMGUI_IMPL_WEBGPU_BACKEND_DAWN or IMGUI_IMPL_WEBGPU_BACKEND_WGPU must be provided. See imgui_impl_wgpu.h for more details.
#if defined(IMGUI_IMPL_WEBGPU_BACKEND_DAWN) == defined(IMGUI_IMPL_WEBGPU_BACKEND_WGPU)

View file

@ -41,9 +41,7 @@
#endif
#include <webgpu/webgpu.h>
#if defined(IMGUI_IMPL_WEBGPU_BACKEND_DAWN)
#include <webgpu/webgpu_cpp.h> // for wgpu::Device, wgpu::DeviceLostReason, wgpu::ErrorType used by validation layer callbacks.
#elif !defined(__EMSCRIPTEN__)
#if defined(IMGUI_IMPL_WEBGPU_BACKEND_WGPU) && !defined(__EMSCRIPTEN__)
#include <webgpu/wgpu.h> // WGPULogLevel
#endif