Can't implement ImGUI in WebGPU project (imgui_impl_wgpu errors) #9436
Closed
panda-hackerman
started this conversation in
New Users Build/Link/Run issues ONLY!
Replies: 1 comment
-
|
I was being silly, the version that the tutorial I was following used of WebGPU was super old, so the APIs were incompatible. Anyone following the same tutorial should download/clone this repo which can fetch whatever version you tell it (or you can just do it manually yourself)--and NOT just download the zip file from the website like I did :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm having issues getting ImGUI working with WebGPU; I've been making a simple desktop app in C++ with WebGPU, following Elie Michel's Guide, and using
wgpu-native. (I asked on their discord first, but unfortunately it's pretty dead).The page about including ImGUI is a bit outdated, but I cloned the repo and added a
vendor\imgui\CMakeLists.txtthat adds the following files (for reference the entire codebase is here):Then I link the project in the main CMakeLists.txt:
However whenever I link the project I a mountain of errors from
imgui\backends\imgui_impl_wgpu.cpp:I'm on Windows; Toolchain is Visual Studio (2022); Generator is Ninja. Also I'm using the
wgpu-nativeimplementation option.This is before including any of the headers in my implementation, just trying to build the project. I searched for the missing identifiers (e.g.
WGPUShaderSourceWGSL) in every file in ImGUI and WGPU and I can't find anything that matches.Not sure what I'm missing here--any help is appreciated. Thanks! :)
Beta Was this translation helpful? Give feedback.
All reactions