Skip to content

Clarify semantics for DeviceLostCallback via Device::destroy #9278

@ByteNybbler

Description

@ByteNybbler

Description
At the time of writing, Device::destroy does not directly invoke the DeviceLostCallback. You are required to call Device::poll to invoke the callback.

The documentation does not make this clear for the following reasons:

If anything, the documentation should be updated to clarify the semantics of how and where this callback gets invoked.

Platform
wgpu 29.0.0 (MacOS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions