-
Notifications
You must be signed in to change notification settings - Fork 0
Dev bindgroup set #26
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
Merged
Merged
Changes from 28 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
d1fcac9
rm dawn again
5453d5f
add dawn
2157bd1
dawn/.gitignore
7fc6c84
rm dawn
ed2aea7
add dawn without .gitignore
241a16e
add lib dawn without gitignore file
20e5186
rm fucking dawn
cc629b3
dawn without .gitignore
2ab7beb
fetch dawn
6de4c2a
invoke fetch_dawn
b639613
fix up fetch_dawn with cmake
fdd873c
ignore lib/dawn
3e5cad8
Merge remote-tracking branch 'origin/master' into try_cache
ace73c9
try cache build folder
c68713f
try cache dawn instead
eb12122
try to cache dawn build folder
898c27d
dont remove build folder
a3b4231
move bindgroup factory method into bindgroup layout
0fb4add
try vendoring dawn code
d0c7c05
try to fetch deps
7cdc1bf
disable fetch from cmake
f6593ad
vendor dawn code
7c6e35a
update dawn fetch script
3b5e82a
cleanup
20cb98a
Merge branch 'dev-vendor-dawn2' into dev_bindgroup_set
6b7cead
Merge remote-tracking branch 'origin/master' into dev_bindgroup_set
283e966
Merge remote-tracking branch 'origin/master' into dev_bindgroup_set
0d51e10
bindgroup set pass
4c78336
implement compute and render with bindgroup set
8e04a00
fix default ctor issue
e42939c
some cleanup, add assertions
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,19 @@ | ||
| #include <iostream> | ||
| #include <map> | ||
| #include <memory> | ||
|
|
||
| #include "bindgroup_set_impl.hpp" | ||
|
|
||
| namespace dawn_wrapper { | ||
| bindgroup_set::bindgroup_set(ptr_type ptr) | ||
| : m_pimpl(ptr) | ||
| { | ||
| } | ||
|
|
||
| bindgroup_set& bindgroup_set::add_bindgroup(bindgroup_wrapper bg, unsigned group) | ||
| { | ||
| m_pimpl->add_bindgroup(bg, group); | ||
| return *this; | ||
| } | ||
|
|
||
| } // dawn_wrapper |
This file contains hidden or 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,29 @@ | ||
| #pragma once | ||
|
|
||
| #include "buffer_wrapper_impl.hpp" | ||
| #include "texture_output_wrapper_impl.hpp" | ||
| #include "texture_wrapper_impl.hpp" | ||
|
|
||
| using namespace wgpu; | ||
|
|
||
| namespace dawn_wrapper { | ||
|
|
||
| struct bindgroup_set::pimpl { | ||
|
|
||
| void add_bindgroup(bindgroup_wrapper bg, unsigned group) | ||
| { | ||
| m_bindgroups[group] = bg; | ||
| } | ||
|
|
||
| pimpl(std::string context_name) | ||
| : m_bindgroups() | ||
| , m_context_name(context_name) | ||
| { | ||
| } | ||
|
|
||
| private: | ||
| std::map<unsigned, bindgroup_wrapper> m_bindgroups; | ||
| std::string m_context_name; | ||
| }; | ||
|
|
||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.