diff --git a/src/front/spv/function.rs b/src/front/spv/function.rs index c3fae71961..856ffc076b 100644 --- a/src/front/spv/function.rs +++ b/src/front/spv/function.rs @@ -189,7 +189,7 @@ impl> super::Parser { if let Some(ep) = self.lookup_entry_point.remove(&fun_id) { // create a wrapping function let mut function = crate::Function { - name: None, + name: Some(format!("{}_wrap", ep.name)), arguments: Vec::new(), result: None, local_variables: Arena::new(), diff --git a/tests/out/shadow.ron b/tests/out/shadow.ron index e5d646fa92..91516dd79d 100644 --- a/tests/out/shadow.ron +++ b/tests/out/shadow.ron @@ -1512,7 +1512,7 @@ early_depth_test: None, workgroup_size: (0, 0, 0), function: ( - name: None, + name: Some("fs_main_wrap"), arguments: [ ( name: Some("in_normal_fs"),