Skip to content

Extract the sprite material cache to a separate struct - #25498

Open
cookie1170 wants to merge 2 commits into
bevyengine:mainfrom
cookie1170:extract-sprite-material-cache
Open

Extract the sprite material cache to a separate struct#25498
cookie1170 wants to merge 2 commits into
bevyengine:mainfrom
cookie1170:extract-sprite-material-cache

Conversation

@cookie1170

Copy link
Copy Markdown
Contributor

Objective

Extract the sprite material cache to a separate struct for reuse and testing. Prerequisite to #25415

Solution

Make a (generic, because of #25415) SpriteMaterialCache struct which stores the previously Local<> hash maps required for caching the materials

Testing

Added unit tests in bevy_sprite_render::sprite_mesh

@cookie1170
cookie1170 force-pushed the extract-sprite-material-cache branch from 468d7e2 to fc27f1d Compare August 21, 2026 00:27
@cookie1170
cookie1170 force-pushed the extract-sprite-material-cache branch from fc27f1d to 81b7731 Compare August 21, 2026 00:38
@Zeophlite Zeophlite added A-Rendering Drawing game state to the screen D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Aug 21, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in Rendering Aug 21, 2026
Comment thread crates/bevy_sprite_render/src/sprite_mesh/mod.rs
@IceSentry IceSentry added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Aug 21, 2026
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 D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

Status: Needs SME Triage

Development

Successfully merging this pull request may close these issues.

3 participants