Skip to content
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] - EntityRenderCommand and PhaseItemRenderCommand #3111

Closed

Conversation

cart
Copy link
Member

@cart cart commented Nov 12, 2021

Adds new EntityRenderCommand, EntityPhaseItem, and CachedPipelinePhaseItem traits to make it possible to reuse RenderCommands across phases. This should be helpful for features like #3072 . It also makes the trait impls slightly less generic-ey in the common cases.

This also fixes the custom shader examples to account for the recent Frustum Culling and MSAA changes (the UX for these things will be improved later).

@cart cart added the A-Rendering Drawing game state to the screen label Nov 12, 2021
@cart cart added this to the Bevy 0.6 milestone Nov 12, 2021
@alice-i-cecile alice-i-cecile added the C-Usability A targeted quality-of-life change that makes Bevy easier to use label Nov 12, 2021
Copy link
Contributor

@superdump superdump left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Copy link
Contributor

@Davier Davier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The EntityRenderCommand, EntityPhaseItem and CachedPipelinePhaseItem traits look great. I will try them soon.
I haven't reviewed the custom_shader part.
It seems that the PR title needs updating, there are no PhaseItemRenderCommands

@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Nov 12, 2021
@cart
Copy link
Member Author

cart commented Nov 12, 2021

Oops good call @Davier! Updated to include the proper trait names.

@cart cart force-pushed the entity-render-commands branch from 33a26a7 to 64239ea Compare November 12, 2021 22:26
@cart
Copy link
Member Author

cart commented Nov 12, 2021

(just renamed the commit ... no changes)

@cart
Copy link
Member Author

cart commented Nov 12, 2021

bors r+

bors bot pushed a commit that referenced this pull request Nov 12, 2021
Adds new `EntityRenderCommand`, `EntityPhaseItem`, and `CachedPipelinePhaseItem` traits to make it possible to reuse RenderCommands across phases. This should be helpful for features like #3072 . It also makes the trait impls slightly less generic-ey in the common cases.

This also fixes the custom shader examples to account for the recent Frustum Culling and MSAA changes (the UX for these things will be improved later).
@bors
Copy link
Contributor

bors bot commented Nov 12, 2021

@bors bors bot changed the title EntityRenderCommand and PhaseItemRenderCommand [Merged by Bors] - EntityRenderCommand and PhaseItemRenderCommand Nov 12, 2021
@bors bors bot closed this Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Usability A targeted quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants