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

native WebGPU backend stage 1 (dawn) #128

Merged
merged 12 commits into from
May 28, 2024
Merged

Conversation

JessyDL
Copy link
Owner

@JessyDL JessyDL commented Dec 25, 2023

Adds the config files and code to have a native WebGPU backend. The backend is provided by Google's Dawn project, due to the size this dependency is dynamically downloaded by cmake.

@JessyDL JessyDL self-assigned this Dec 25, 2023
- removed API specific includes in general headers
- added the WebGPU graphics backend
- updated Dawn to the latest version and using eliemichel's solution resolved compilation issues
- fixed os/surface relying on Vulkan specific code
- added a temporary main_webgpu untill branch stable
context and swapchain now have WebGPU implementations in the gfx namespace.
Implemented the requirements to render to the screen in an agnostic manner
- cleaned up some of the includes
- fixed a potential incomplete type being deleted (gfx::render_graph)
- psl::library now supports being initialized without physical backing
Additionally some small maintenance changes were done such as:
- `psl::meta::library` to handle obvious error cases of missing files.
- Logging initializer now no longer returns a bool as there's no false return to begin with.
- Fixed an issue on windows when running clang-format on WSL
- Reading a file in debug no longer causes an assert to be hit as an empty return is a valid return for the function.
@JessyDL JessyDL changed the title native WebGPU backend (dawn) native WebGPU backend stage 1 (dawn) May 28, 2024
@JessyDL JessyDL marked this pull request as ready for review May 28, 2024 18:07
@JessyDL JessyDL merged commit e44b857 into develop May 28, 2024
14 checks passed
@JessyDL JessyDL deleted the jdl/native-webgpu-backend branch May 28, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant