Skip to content

[core] Implement WebGPUError for WaitIdleError.#9128

Open
jimblandy wants to merge 1 commit intogfx-rs:trunkfrom
jimblandy:impl-webgpuerror-for-waitidleerror
Open

[core] Implement WebGPUError for WaitIdleError.#9128
jimblandy wants to merge 1 commit intogfx-rs:trunkfrom
jimblandy:impl-webgpuerror-for-waitidleerror

Conversation

@jimblandy
Copy link
Copy Markdown
Member

Implement the wgpu_types::error::WebGpuError categorization trait for wgpu_core::device::life::WaitIdleError, so that the latter can be properly reported to users of the WebGPU API.

Implement the `wgpu_types::error::WebGpuError` categorization trait
for `wgpu_core::device::life::WaitIdleError`, so that the latter can
be properly reported to users of the WebGPU API.
@jimblandy jimblandy force-pushed the impl-webgpuerror-for-waitidleerror branch from 5526e4e to db17312 Compare February 28, 2026 22:12
@teoxoy teoxoy self-assigned this Mar 3, 2026
match self {
WaitIdleError::Device(device_error) => device_error.webgpu_error_type(),
WaitIdleError::WrongSubmissionIndex(_, _) | WaitIdleError::Timeout => {
ErrorType::Internal
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The spec only allows generating internal errors at pipeline creation time (it was needed to support FXC, but since we dropped support for FXC we should ideally never use this variant).

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.

2 participants