-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
native WebGPU backend stage 1 (dawn) (#128)
feat: Adds stage 1 WebGPU/Dawn experimental backend. What that means is that the project now supports Dawn as a backend, but that no HAL has been written yet, and using the WebGPU layer directly isn't properly functioning yet either (though much of it is already present). These will come at a later time. * added dawn as a native webgpu backend * added 64 bit native WebGPU support to windows * More fixes to make Native WebGPU through Dawn work - 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 * Adds a temp swapchain, renderpass, etc.. * Added agnostic abstractions for WebGPU context and swapchain now have WebGPU implementations in the gfx namespace. * moved logging initialization from main * more feature implementation and fixes 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 * fixed extra loggers being defined for Android Additionally some small maintenance changes were done such as: - `psl::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.
- Loading branch information
Showing
57 changed files
with
1,917 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,5 +88,6 @@ | |
"stop_token": "cpp", | ||
"cinttypes": "cpp", | ||
"typeindex": "cpp" | ||
} | ||
}, | ||
"git.ignoreLimitWarning": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
#include "core/defines.hpp" | ||
#include "core/fwd/resource/resource.hpp" | ||
|
||
|
||
namespace core::iwgpu { | ||
class shader; | ||
} // namespace core::iwgpu | ||
|
||
namespace core::meta { | ||
class shader; | ||
} | ||
namespace core::resource { | ||
template <> | ||
struct resource_traits<core::iwgpu::shader> { | ||
using meta_type = core::meta::shader; | ||
}; | ||
} // namespace core::resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
#include "core/fwd/resource/resource.hpp" | ||
|
||
namespace core::iwgpu { | ||
class texture_t; | ||
} // namespace core::iwgpu | ||
|
||
namespace core::meta { | ||
class texture_t; | ||
} | ||
namespace core::resource { | ||
template <> | ||
struct resource_traits<core::iwgpu::texture_t> { | ||
using meta_type = core::meta::texture_t; | ||
}; | ||
} // namespace core::resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.