-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Convert RenderTarget to Component
#20917
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
base: main
Are you sure you want to change the base?
Conversation
ickshonpe
left a comment
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.
Looks good, all the changes make sense, no problems with any of the examples.
|
marking as waiting-for-author due to merge conflicts |
# Conflicts: # crates/bevy_camera/src/camera.rs # crates/bevy_ui/src/widget/viewport.rs
|
It looks like your PR is a breaking change, but you didn't provide a migration guide. Please review the instructions for writing migration guides, then expand or revise the content in the migration guides directory to reflect your changes. |
alice-i-cecile
left a comment
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.
This needs a quick migration guide, but otherwise looks fine.
fed495b to
9af8f19
Compare
|
Your PR caused a change in the graphical output of an example or rendering test. This might be intentional, but it could also mean that something broke! If it's expected, please add the M-Deliberate-Rendering-Change label. If this change seems unrelated to your PR, you can consider updating your PR to target the latest main branch, either by rebasing or merging main into it. |
Objective
#20830 created the possibility that we may want to have render targets that produce a number of outputs, e.g. depth and normals. This is a first step towards something like that (e.g. a
RendersTorelation) by convertingRenderTargetto be a component. This is also useful for out-of-tree render targets that may want to do something like#[require(RenderTarget::Image)]once BSN lands.Solution
Make it a component.