mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 05:51:03 +01:00
[naga] Document entry_point argument to process_overrides.
This commit is contained in:
1 parent
d45fdcd11a
commit
faac3bb16b
1 file changed
+4
@@ -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`]
|
||||
|
||||
Reference in new issue
Block a user