Skip to content

Introduce shader::Pipeline trait for easier wgpu resource management#2876

Closed
AustinEvansWX wants to merge 4 commits intoiced-rs:masterfrom
AtmosWX:shader-pipeline
Closed

Introduce shader::Pipeline trait for easier wgpu resource management#2876
AustinEvansWX wants to merge 4 commits intoiced-rs:masterfrom
AtmosWX:shader-pipeline

Conversation

@AustinEvansWX
Copy link
Contributor

As discussed here on Discord, discarding of cached wgpu resources can be tricky without knowing when a frame has finished drawing.

This PR introduces the Pipeline trait which will be required to be implemented for all types put into Storage. The end_frame method on this trait will be triggered following each frame akin to how the internal pipelines have trim().

@hecrj hecrj closed this in 711c0c6 Nov 25, 2025
@hecrj hecrj added this to the 0.14 milestone Nov 25, 2025
@hecrj
Copy link
Member

hecrj commented Nov 25, 2025

Thanks!

Merged manually since I didn't have permissions to push to your branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments