Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current header now erroring with wgpu-native #23

Open
trbabb opened this issue Oct 11, 2024 · 1 comment
Open

Current header now erroring with wgpu-native #23

trbabb opened this issue Oct 11, 2024 · 1 comment

Comments

@trbabb
Copy link

trbabb commented Oct 11, 2024

I just updated to the latest version of wgpu-native for MacOS, and I'm getting a bunch of errors now, including:

/usr/local/include/webgpu/webgpu.hpp:664:35: error: use of undeclared identifier 'WGPUSType_RequiredLimitsExtras'; did you mean 'RequiredLimitsExtras'?
  664 |         ENUM_ENTRY(RequiredLimitsExtras, WGPUSType_RequiredLimitsExtras)
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                          RequiredLimitsExtras

It looks like perhaps the naming has changed?

This was also after editing the header to remove this line, which also generates an error:

/usr/local/include/webgpu/webgpu.hpp:38:10: fatal error: 'wgpu/wgpu.h' file not found
   38 | #include <wgpu/wgpu.h>  // NB: Will soon revert to webgpu/wgpu.h
      |          ^~~~~~~~~~~~~
1 error generated.
@eliemichel
Copy link
Owner

Hello, instead of removing that line, change it to #include <webgpu/wgpu.h> as suggested in the comment.

If it is not enough, it means you have a mismatch between your version of webgpu.h/wgpu.h and the webgpu.hpp wrapper. You can check version nombers in the wgpu-native-tag.txt file that comes with webgpu.hpp, and if needed re-generate this wrapper using the web tool of generate.py!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants