Skip to content

Commit 988f0dd

Browse files
committed
[naga] Document entry_point argument to process_overrides.
1 parent 7a65558 commit 988f0dd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

naga/src/back/pipeline_constants.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ pub enum PipelineConstantError {
5454
/// invalid results (e.g. replace an invalid expression with a constant) for
5555
/// invalid modules.
5656
///
57+
/// If `entry_point` is specified, remove all other entry points from the
58+
/// returned module. Without this, re-validation will fail if any entry point
59+
/// uses an override whose value wasn't provided.
60+
///
5761
/// If no changes are needed, this just returns `Cow::Borrowed` references to
5862
/// `module` and `module_info`. Otherwise, it clones `module`, retains only the
5963
/// selected entry point, compacts the module, edits its [`global_expressions`]

0 commit comments

Comments
 (0)