From faac3bb16b378ffeefaa8a214d1d78985a7d4ea7 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sun, 2 Aug 2026 16:38:38 -0700 Subject: [PATCH] [naga] Document `entry_point` argument to `process_overrides`. --- naga/src/back/pipeline_constants.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/naga/src/back/pipeline_constants.rs b/naga/src/back/pipeline_constants.rs index 312135ae1..29a3fc34f 100644 --- a/naga/src/back/pipeline_constants.rs +++ b/naga/src/back/pipeline_constants.rs @@ -54,6 +54,10 @@ pub enum PipelineConstantError { /// invalid results (e.g. replace an invalid expression with a constant) for /// invalid modules. /// +/// If `entry_point` is specified, remove all other entry points from the +/// returned module. Without this, re-validation will fail if any entry point +/// uses an override whose value wasn't provided. +/// /// If no changes are needed, this just returns `Cow::Borrowed` references to /// `module` and `module_info`. Otherwise, it clones `module`, retains only the /// selected entry point, compacts the module, edits its [`global_expressions`]