Skip to content

fix(webgpu): Insert fragment constants into fragment descriptor #7621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025

Conversation

DerSchmale
Copy link
Contributor

Description
In create_render_pipeline, the frag.compilation_options.constants were mistakenly inserted into mapped_vertex_state instead of mapped_fragment_desc, causing override constants to fail in the fragment shader.

Testing
A shader was used to conditionally sample a texture to use as color output, otherwise output white. Did not work before, but does now.

Squash or Rebase?

Not applicable.

@DerSchmale DerSchmale requested a review from a team as a code owner April 24, 2025 10:36
@cwfitzgerald cwfitzgerald merged commit 50eb207 into gfx-rs:trunk Apr 30, 2025
37 checks passed
@cwfitzgerald cwfitzgerald added the PR: needs back-porting PR with a fix that needs to land on crates label Apr 30, 2025
Wumpf pushed a commit that referenced this pull request May 24, 2025
Wumpf pushed a commit to Wumpf/wgpu that referenced this pull request May 24, 2025
Wumpf added a commit that referenced this pull request May 24, 2025
…ad of vertex (#7621) (#7722)

Co-authored-by: David Lenaerts <550217+DerSchmale@users.noreply.github.com>
@Wumpf
Copy link
Member

Wumpf commented May 24, 2025

backported to v24 in:

but not v25 line yet.

Wumpf added a commit to Wumpf/wgpu that referenced this pull request May 24, 2025
…ad of vertex (gfx-rs#7621) (gfx-rs#7722)

Co-authored-by: David Lenaerts <550217+DerSchmale@users.noreply.github.com>
@Wumpf Wumpf mentioned this pull request May 24, 2025
@Wumpf Wumpf removed the PR: needs back-porting PR with a fix that needs to land on crates label May 24, 2025
Wumpf added a commit that referenced this pull request May 24, 2025
Co-authored-by: David Lenaerts <550217+DerSchmale@users.noreply.github.com>
Co-authored-by: RedMindZ <tavtaor11@gmail.com>
Co-authored-by: Kevin Reid <kpreid@switchb.org>
fix(webgpu): Insert fragment constants into fragment descriptor instead of vertex (#7621) (#7722)
Fixed a deadlock caused by locking the device's snatchable lock **after** locking the queue's pending writes (#7582)
Fix `raw-window-handle` dependency being too lenient (#7526)
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.

3 participants