Skip to content

[webgpu] Implement "lose the device" #32347

Closed

Description

@sagudev

Currently device lost is mostly non-working/missing. We need to resolve lost promise of device using https://docs.rs/wgpu-core/latest/wgpu_core/global/struct.Global.html#method.device_set_device_lost_closure and implement device losing, we also need to take care of

gpu_devices: DomRefCell<HashMapTracedValues<WebGPUDevice, Dom<GPUDevice>>>,
and of device hashmaps in WGPU struct. Errors should not be recorded after device is lost!

SPEC: https://www.w3.org/TR/webgpu/#lose-the-device

Some relevant talk in #32304 (review)

Activity

  1. added
    A-content/webgpu
    on May 22, 2024
  2. changed the title [-]Implement device lost[/-] [+][webgpu] Implement "lose the device"[/+] on May 22, 2024
  3. sagudev commented on Jun 17, 2024

    @sagudev
    MemberAuthor

    Fixed in #32354

  4. moved this from To do to Done in WebGPUon Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-content/webgpu

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions