We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7348f33 commit cb8477dCopy full SHA for cb8477d
crates/spirv-std-macros/src/lib.rs
@@ -79,6 +79,8 @@ pub fn spirv(_attr: TokenStream, item: TokenStream) -> TokenStream {
79
tokens.into_iter().collect()
80
}
81
82
+/// Marks a function as runnable only on the GPU, and will panic on
83
+/// CPU platforms.
84
#[proc_macro_attribute]
85
pub fn gpu_only(_attr: TokenStream, item: TokenStream) -> TokenStream {
86
let syn::ItemFn {
0 commit comments