mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[spv-in] Give entry point function the same name as entry point itself
This commit is contained in:
committed by
Dzmitry Malyshau
parent
f6da21f8dd
commit
9fbe681316
@@ -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(),
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user