If you codegen spirv entry points and you typo an attribute, you get this error not showing you which one you typo'ed, since the span is from the macro invocation.
error: unknown argument to spirv attribute
--> node-graph/graster-nodes/src/adjustments.rs:44:1
|
44 | #[node_macro::node(category("Raster: Adjustment"), shader_node(PerPixelAdjust))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `node_macro::node` (in Nightly builds, run with -Z macro-backtrace for more info)
System Info