mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
Fix empty input and output
This commit is contained in:
parent
87191bbb97
commit
4e48017de9
@ -135,8 +135,13 @@ fn write_entry_point(doc: &parse::Spirv, instruction: &parse::Instruction) -> St
|
||||
}
|
||||
}
|
||||
|
||||
let input = {
|
||||
let input = input_types.join(", ");
|
||||
if input.is_empty() { input } else { input + "," }
|
||||
};
|
||||
|
||||
let t = format!("::vulkano::shader::VertexShaderEntryPoint<({input})>",
|
||||
input = input_types.join(", ") + ",");
|
||||
input = input);
|
||||
(t, "vertex_shader_entry_point")
|
||||
},
|
||||
|
||||
@ -169,8 +174,13 @@ fn write_entry_point(doc: &parse::Spirv, instruction: &parse::Instruction) -> St
|
||||
}
|
||||
}
|
||||
|
||||
let output = {
|
||||
let output = output_types.join(", ");
|
||||
if output.is_empty() { output } else { output + "," }
|
||||
};
|
||||
|
||||
let t = format!("::vulkano::shader::FragmentShaderEntryPoint<({output})>",
|
||||
output = output_types.join(", ") + ",");
|
||||
output = output);
|
||||
(t, "fragment_shader_entry_point")
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user