Skip to content

Don't panic when hitting wgpu-core only paths on webgpu backend #5187

@Wumpf

Description

@Wumpf

Currently, all methods that require a native feature will always lead to panic on the WebGPU backend. This is unlike other errors (including lacking features on wgpu-core!) which are funneled through the error callbacks, meaning it's impossible to ignore these errors on WebGPU

Describe the solution you'd like
Ideally, we'd use the same mechanism and invoke the error callbacks. They are right now directly set on the backend so this might would need some additional book-keeping.

Describe alternatives you've considered
Technically we could return a result for all of these cases, but that would make error handling awfully inconsistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: apiIssues related to API surfacebackend: webgpuIssues with direct interface with WebGPU

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions