Skip to content

[core] Promote unexpected varying types to log::error. - #9982

Merged
ErichDonGubler merged 1 commit into
gfx-rs:trunkfrom
jimblandy:core-clip-distances-validation-logging
Aug 3, 2026
Merged

[core] Promote unexpected varying types to log::error.#9982
ErichDonGubler merged 1 commit into
gfx-rs:trunkfrom
jimblandy:core-clip-distances-validation-logging

Conversation

@jimblandy

Copy link
Copy Markdown
Member

When wgpu_core finds a binding with an unexpected type, log that with error severity, not debug. This was demoted to debug in be6898f, because, as the comment says:

every shader coming from glslc outputs an array of clip distances
and hits this path :(

However, #8762 added a match case above this that handles clip distance arrays, so such output should no longer trigger any logging at all.

cc: @ErichDonGubler

When `wgpu_core` finds a binding with an unexpected type, log that
with `error` severity, not `debug`. This was demoted to `debug` in
be6898f, because, as the comment says:

> every shader coming from `glslc` outputs an array of clip distances
> and hits this path :(

However, gfx-rs#8762 added a match case above this that handles clip
distance arrays, so such output should no longer trigger any logging
at all.

@ErichDonGubler ErichDonGubler left a comment

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.

Schweet, love seeing us being able to be more pedantic helpful.

@ErichDonGubler ErichDonGubler self-assigned this Aug 3, 2026
@ErichDonGubler ErichDonGubler added backend: gles Issues with GLES or WebGL kind: refactor Making existing function faster or nicer labels Aug 3, 2026
@ErichDonGubler

Copy link
Copy Markdown
Member

question(non-blocking): This isn't super important to spend a lot of time on IMO, but I want to ask: Is there some signal I missed here for updating this? I'm wondering if I need to improve how I pay attention to things connected to validation like this.

@ErichDonGubler
ErichDonGubler merged commit a05a2b2 into gfx-rs:trunk Aug 3, 2026
59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend: gles Issues with GLES or WebGL kind: refactor Making existing function faster or nicer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants