fix shader macro for geometry stages (#1823)

This commit is contained in:
Eemeli Lehtonen 2022-02-10 23:41:43 +02:00 committed by GitHub
parent f19ba2d0ed
commit 3054690ed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,9 +64,11 @@ fn write_shader_execution(execution: &ShaderExecution) -> TokenStream {
ShaderExecution::Geometry(::vulkano::shader::GeometryShaderExecution { input }) => {
let input = format_ident!("{}", format!("{:?}", input));
quote! {
::vulkano::shader::ShaderExecution::Geometry {
input: GeometryShaderInput::#input,
}
::vulkano::shader::ShaderExecution::Geometry(
::vulkano::shader::GeometryShaderExecution {
input: ::vulkano::shader::GeometryShaderInput::#input
}
)
}
}
ShaderExecution::Fragment => quote! { ::vulkano::shader::ShaderExecution::Fragment },