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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: needs back-porting PR with a fix that needs to land on crates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants