From 87200f3c2a4b1877b74e416ab09cdc3e6f003790 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Sat, 15 Aug 2026 14:49:19 +0000 Subject: [PATCH] Gate a flipped shader node's layout metadata out of the GPU build --- node-graph/node-macro/src/codegen.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node-graph/node-macro/src/codegen.rs b/node-graph/node-macro/src/codegen.rs index 495fa26acf..03412df26c 100644 --- a/node-graph/node-macro/src/codegen.rs +++ b/node-graph/node-macro/src/codegen.rs @@ -1739,7 +1739,10 @@ pub(crate) fn generate_node_impl(crate_ident: &CrateIdent, parsed: &ParsedNodeFn None => quote!(#core_types::record::ElementSpec::Carried), }; let layout_meta = crate::codegen::ir::layout_meta_tokens(&node, element_spec, core_types); + // A flipped shader node's struct and impl are std-gated; its layout meta must be too. + let cfg = crate::shader_nodes::modify_cfg(&parsed.attributes); quote! { + #cfg #vis fn #layout_meta_fn() -> #core_types::record::LayoutMeta { #layout_meta }