[spv-in] Give entry point function the same name as entry point itself

This commit is contained in:
Gordon-F
2021-05-03 23:17:56 +03:00
committed by Dzmitry Malyshau
parent f6da21f8dd
commit 9fbe681316
2 changed files with 2 additions and 2 deletions

View File

@@ -189,7 +189,7 @@ impl<I: Iterator<Item = u32>> super::Parser<I> {
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(),

View File

@@ -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"),