Skip to content

Comments

Add Layer::remove_from_superlayer_if_necessary#32

Open
madsmtm wants to merge 1 commit intomasterfrom
remove-from-superlayer
Open

Add Layer::remove_from_superlayer_if_necessary#32
madsmtm wants to merge 1 commit intomasterfrom
remove-from-superlayer

Conversation

@madsmtm
Copy link
Member

@madsmtm madsmtm commented Feb 8, 2026

And document that you need to call removeFromSuperlayer to avoid keeping unnecessary layers around.

See gfx-rs/wgpu#9021 and rust-windowing/softbuffer#333 for motivation.

This does mean that raw-window-metal's design is less pretty than I originally thought, but oh well, too late to change that now.

TODO:

  • Test this a bit further.

And document that you need to call `removeFromSuperlayer` to avoid
keeping unnecessary layers around.
@madsmtm madsmtm added the bug Something isn't working label Feb 8, 2026
@madsmtm madsmtm mentioned this pull request Feb 8, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

1 participant