mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-18 18:38:05 +08:00
Reach a compiling workspace on the merged tree
This commit is contained in:
@@ -83,9 +83,13 @@ fn flip_entries_tokens(parsed: &ParsedNodeFn, struct_name: &Ident, regular_field
|
||||
let mentioned = candidate_params.iter().zip(&kept).any(|(param, kept)| {
|
||||
*kept
|
||||
&& match param {
|
||||
GenericParam::Type(type_param) => type_param.bounds.iter().any(|bound| {
|
||||
let bound: Type = syn::parse_quote!(dyn #bound);
|
||||
type_contains_ident(&bound, &ident)
|
||||
// Only trait bounds can mention another parameter; a lifetime bound would build an invalid `dyn 'a`.
|
||||
GenericParam::Type(type_param) => type_param.bounds.iter().any(|bound| match bound {
|
||||
syn::TypeParamBound::Trait(trait_bound) => {
|
||||
let bound: Type = syn::parse_quote!(dyn #trait_bound);
|
||||
type_contains_ident(&bound, &ident)
|
||||
}
|
||||
_ => false,
|
||||
}),
|
||||
_ => false,
|
||||
}
|
||||
|
||||
@@ -286,7 +286,7 @@ impl PerPixelAdjustCodegen<'_> {
|
||||
let entry_point_name = &self.entry_point_name;
|
||||
let body = quote! {
|
||||
{
|
||||
#executor.shader_runtime().run_per_pixel_adjust(&::wgpu_executor::shader_runtime::per_pixel_adjust_runtime::Shaders {
|
||||
#executor.run_per_pixel_adjust(&::wgpu_executor::shader_runtime::per_pixel_adjust_runtime::Shaders {
|
||||
wgsl_shader: crate::WGSL_SHADER,
|
||||
fragment_shader_name: super::#entry_point_name,
|
||||
has_uniform: #has_uniform,
|
||||
|
||||
Reference in New Issue
Block a user