-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 by Bors] - Added buffer usage field to buffers #7423
Conversation
Welcome, new contributor!
|
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.
A nice first PR, thank you!
I think the buffer should be recreated, whenever the usage changes.
Besides the minor nit, this looks good to me.
Welcome, new contributor!
|
bors try @superdump or @james7132 when you're ready, feel free to merge this. I don't understand buffers well enough to feel confident merging this myself. |
tryBuild failed: |
@SpeedRoll can you fix the CI errors listed in the output above so this becomes mergeable? |
@alice-i-cecile fixed |
bors try |
bors r+ |
# Objective Buffers in bevy do not allow for setting buffer usage flags which can be useful for setting COPY_SRC, MAP_READ, MAP_WRITE, which allows for buffers to be copied from gpu to cpu for inspection. ## Solution Add buffer_usage field to buffers and a set_usage function to set them
Build failed: |
Ubuntu mirrors please... bors retry |
# Objective Buffers in bevy do not allow for setting buffer usage flags which can be useful for setting COPY_SRC, MAP_READ, MAP_WRITE, which allows for buffers to be copied from gpu to cpu for inspection. ## Solution Add buffer_usage field to buffers and a set_usage function to set them
Build failed (retrying...): |
# Objective Buffers in bevy do not allow for setting buffer usage flags which can be useful for setting COPY_SRC, MAP_READ, MAP_WRITE, which allows for buffers to be copied from gpu to cpu for inspection. ## Solution Add buffer_usage field to buffers and a set_usage function to set them
Pull request successfully merged into main. Build succeeded:
|
Objective
Buffers in bevy do not allow for setting buffer usage flags which can be useful for setting COPY_SRC, MAP_READ, MAP_WRITE, which allows for buffers to be copied from gpu to cpu for inspection.
Solution
Add buffer_usage field to buffers and a set_usage function to set them