Skip to content

Create a special error variant for "device removed" #297

Description

@MarijnS95

As we've seen in #262 ERROR_DEVICE_REMOVED can also be raised out of resource creation functions (on Dx12) which gpu-allocator calls. We have some custom logic to run on specifically those errors, but gpu-allocator currently only returns them back in opaque Internal(String) variant leading to ugly string-compares, when we'd rather match on a stable DeviceRemoved variant that is mapped from ERROR_DEVICE_REMOVED.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions