-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
[WebGPU] Update and Correct example and backend #8831
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
Conversation
Makefile has been updated for the current state of emscripten, featuring --use-port=emdawnwebgpu and REMOVING -sUSE_WEBGPU=1 The example is again up to date with webgpu.h and doesn't require webgpu_cpp anymore
|
Thanks! Linking to #8674 #8567 #8381 FYI I am struggling to take on action with any of those since they are difficult to test :( Also, any PR which exhibit the fact that the submitting person has not carefully reviewed every line of the PR is also quite unfortunately immediately taking a huge hit in term of trust. It's difficult for me to consider reviewing a PR if I feel that I cannot trust the submitter. It's 100% certain there are useful stuff in there, which I can use as reference at minimum, but if I can spot 5 mistakes in one minute of reviewing the whole thing begins with a huge hit on trust. |
WGPUEmscriptenSurfaceSourceCanvasHTMLSelectorand its sTypeThe current implementation has been tested against webgpu.h generated by chromium/7281
In the example, a glfw callback is added to correctly deal with window resizes.
However, here's some parts of this PR that are still unrefined:
#ifdefswitching depending on the backend to choose a code path. This PR keeps it that way, however this should maybe be removed entirely? The only purpose of this is to deal with outdated headers of some implementations.#errordirective.