mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 20:51:29 +11:00
17 lines
383 B
Rust
17 lines
383 B
Rust
|
mod parse;
|
||
|
|
||
|
use proc_macro::TokenStream;
|
||
|
use quote::quote;
|
||
|
use syn::parse_macro_input;
|
||
|
|
||
|
use parse::GpuModule;
|
||
|
|
||
|
#[proc_macro]
|
||
|
pub fn piet_gpu(input: TokenStream) -> TokenStream {
|
||
|
let input = parse_macro_input!(input as syn::ItemMod);
|
||
|
//println!("input: {:#?}", input);
|
||
|
let module = GpuModule::from_syn(&input).unwrap();
|
||
|
let expanded = quote! {};
|
||
|
expanded.into()
|
||
|
}
|