-
-
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.
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
- Loading branch information
Showing
18 changed files
with
286 additions
and
40 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
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 |
---|---|---|
|
@@ -181,6 +181,8 @@ if(${PE_WEBGPU}) | |
set(INC_WEBGPU | ||
iwgpu | ||
context | ||
computepass | ||
drawpass | ||
swapchain | ||
) | ||
|
||
|
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,44 @@ | ||
#pragma once | ||
#include "core/gfx/drawgroup.hpp" | ||
#include "core/gfx/types.hpp" | ||
#include "core/resource/resource.hpp" | ||
|
||
namespace core::iwgpu { | ||
class context; | ||
class swapchain; | ||
class framebuffer; | ||
class computepass; | ||
|
||
class drawpass { | ||
public: | ||
drawpass(core::resource::handle<context> context, core::resource::handle<swapchain> swapchain); | ||
// drawpass(core::resource::handle<context> context, core::resource::handle<framebuffer> framebuffer); | ||
~drawpass() = default; | ||
|
||
drawpass(const drawpass& other) = default; | ||
drawpass(drawpass&& other) noexcept = default; | ||
|
||
drawpass& operator=(const drawpass& other) = default; | ||
drawpass& operator=(drawpass&& other) noexcept = default; | ||
|
||
void clear(); | ||
void prepare(); | ||
bool build(bool force = false); | ||
void present(); | ||
|
||
bool is_swapchain() const noexcept; | ||
|
||
void add(core::gfx::drawgroup& group) noexcept; | ||
|
||
void connect(psl::view_ptr<drawpass> pass) noexcept; | ||
void connect(psl::view_ptr<computepass> pass) noexcept; | ||
void disconnect(psl::view_ptr<drawpass> pass) noexcept; | ||
void disconnect(psl::view_ptr<computepass> pass) noexcept; | ||
|
||
private: | ||
core::resource::handle<context> m_Context {}; | ||
core::resource::handle<swapchain> m_Swapchain {}; | ||
// core::resource::handle<framebuffer> m_Framebuffer {}; | ||
psl::array<core::gfx::drawgroup> m_DrawGroups {}; | ||
}; | ||
} // namespace core::iwgpu |
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,5 @@ | ||
#pragma once | ||
|
||
namespace core::iwgpu { | ||
class framebuffer {}; | ||
} // namespace core::iwgpu |
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.