Skip to content

[spv/msl/hlsl-out] support pipeline constant value replacements#4998

Merged
teoxoy merged 2 commits intogfx-rs:pipeline-constantsfrom
teoxoy:pipeline-constants
Feb 12, 2024
Merged

[spv/msl/hlsl-out] support pipeline constant value replacements#4998
teoxoy merged 2 commits intogfx-rs:pipeline-constantsfrom
teoxoy:pipeline-constants

Conversation

@teoxoy
Copy link
Copy Markdown
Member

@teoxoy teoxoy commented Jan 5, 2024

Adds support for value replacements of pipeline-overridable constants for our 3 main back-ends.

Tracking meta issue: #4484.

  • File issues to implement override constants in terms of platform features, like SPIR-V's specialization constants. This would let us move SPIR-V generation from pipeline creation time back to module creation time.

@teoxoy teoxoy requested a review from a team January 5, 2024 13:52
@teoxoy teoxoy requested a review from a team as a code owner January 5, 2024 13:52
@teoxoy teoxoy force-pushed the pipeline-constants branch from 340768e to 9d72542 Compare January 5, 2024 14:27
@teoxoy teoxoy force-pushed the pipeline-constants branch from 82ebbfd to 420690a Compare January 8, 2024 18:20
@teoxoy teoxoy requested a review from a team January 8, 2024 18:20
@teoxoy teoxoy force-pushed the pipeline-constants branch from 9d72542 to 5e4a8f7 Compare January 8, 2024 18:21
@teoxoy teoxoy removed the request for review from a team January 8, 2024 18:21
@teoxoy teoxoy force-pushed the pipeline-constants branch from 420690a to 6a494a8 Compare January 8, 2024 18:58
@teoxoy teoxoy force-pushed the pipeline-constants branch from 5e4a8f7 to 6cae486 Compare January 8, 2024 18:59
Copy link
Copy Markdown
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

Just booping to get out of my review queue :)

Copy link
Copy Markdown
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

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

Okay, this looks good to me.

I have various suggestions. I'll push commits for some of them to teoxoy/wgpu@pipeline-constants...jimblandy:wgpu:pipeline-constants

params.pipeline_constants.clone(),
);
if !old.is_empty() {
panic!("Supply pipeline constants via pipeline_constants instead of msl_pipeline.constants!");
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.

In a follow-up, let's try to make the parameters for all the snapshot backends work in the same way.

@teoxoy teoxoy force-pushed the pipeline-constants branch from 19a3714 to e4d71e1 Compare February 9, 2024 16:56
@teoxoy teoxoy merged commit 28b79ab into gfx-rs:pipeline-constants Feb 12, 2024
@teoxoy teoxoy mentioned this pull request Apr 5, 2024
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