Skip to content

Rune c8f2888e: HUD painter follows Rune's device key (#982) - #993

Merged
thdxr merged 1 commit into
devfrom
device-key
Nov 2, 2026
Merged

thdxr merged 1 commit into
devfrom
device-key

Conversation

@thdxr

@thdxr thdxr commented Nov 2, 2026

Copy link
Copy Markdown
Member

wgpu compares Devices by id (impl_eq_ord_hash_proxy!(CoreDevice => .id)), and every Rune Gpu has its own instance whose first device gets the same id, so the device != f.device check from #986 never fired. rune c8f2888e adds Frame::device_key() (a process-unique key per renderer, so per device) and a noop-backend test showing two instances' devices compare equal while their keys differ. hex keys the HUD and Sounds preview painters on it.

thanks to the #982 reporter for catching it on hardware. not tested on nvidia here.

…vice equality (#982)

wgpu compares Devices by id, and each Rune GPU has its own instance whose
first device gets the same id as the last one's, so device != f.device never
saw a new device. The HUD and the Sounds preview now keep their painter by
Frame::device_key, unique per device for the process. Thanks to the #982
reporter for catching it on hardware.
@thdxr
thdxr merged commit 7799a84 into dev Nov 2, 2026
1 of 4 checks passed
thdxr added a commit that referenced this pull request Nov 2, 2026
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.

1 participant