From 9e8097188e5a209065ebdaba10ed85006adb95e9 Mon Sep 17 00:00:00 2001 From: ReversedCausality Date: Fri, 6 Oct 2023 19:19:44 +0100 Subject: [PATCH] Fix macro. --- luisa_compute_derive_impl/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/luisa_compute_derive_impl/src/lib.rs b/luisa_compute_derive_impl/src/lib.rs index 3791fd2..c40e21c 100644 --- a/luisa_compute_derive_impl/src/lib.rs +++ b/luisa_compute_derive_impl/src/lib.rs @@ -141,7 +141,8 @@ impl Compiler { #(self.#field_names.encode(encoder);)* } } - impl #impl_generics #runtime_path::AsKernelArg<#name #ty_generics> for #name #ty_generics #where_clause { + impl #impl_generics #runtime_path::AsKernelArg for #name #ty_generics #where_clause { + type Output = #name #ty_generics; } ) }