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

This commit is contained in:
Gordon-F authored and Dzmitry Malyshau committed 2021-05-04 10:45:39 -04:00
1 parent f6da21f8dd
commit 9fbe681316
2 files changed
+2 -2

No files matched your search

+1 -1
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(),
+1 -1
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"),