diff --git a/vulkano-shaders/src/entry_point.rs b/vulkano-shaders/src/entry_point.rs index 126e28f8e..7302aa230 100644 --- a/vulkano-shaders/src/entry_point.rs +++ b/vulkano-shaders/src/entry_point.rs @@ -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 },