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.
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
Transition resources #6678
Transition resources #6678
Changes from 10 commits
cb8acef
fd4b993
8000e37
a441f81
e19769c
efbb336
1897bca
328028b
8fc87bb
8d711c9
fea7b90
dacb259
27497ce
03084df
1590a1d
fb3cb54
1c13ef9
4e46c96
0e98d93
3dd0525
08807c3
8e3b178
b81c1c9
2be3395
cefa9ba
66aacba
4e49e5d
2f2e9dd
11a6d37
a90542e
4483082
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is CommandBuffer 1 still separated out? This was described as adding the resource transition to RESOURCE manually as part of CommandBuffer C, therefore wgpu should see COLOR_TARGET as expected start state of C.
If this is another limitation we have today it would be good to capture this here. Also, the
transition_resources
call in C is not doing anything then.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh whoops, I think that's a mistake. I don't actually know what will happen with the second transition_resources() call.
Tbh how wgpu's barrier tracking system works still confuses me. Like the fact that it's still inserting CommandBuffer 0 to begin with. I was hoping it could just be a part of A directly.
Can you adjust the docs for me to match how this is supposed to work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm yeah actually
CommandBuffer 0
shouldn't be there either 🤔Let's wait for @cwfitzgerald to have a look - my knowledge of the tracker is quite shaky as well.