Skip to content

Commit cb8477d

Browse files
authored
Document gpu-only (#489)
1 parent 7348f33 commit cb8477d

File tree

1 file changed

+2
-0
lines changed
  • crates/spirv-std-macros/src

1 file changed

+2
-0
lines changed

crates/spirv-std-macros/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ pub fn spirv(_attr: TokenStream, item: TokenStream) -> TokenStream {
7979
tokens.into_iter().collect()
8080
}
8181

82+
/// Marks a function as runnable only on the GPU, and will panic on
83+
/// CPU platforms.
8284
#[proc_macro_attribute]
8385
pub fn gpu_only(_attr: TokenStream, item: TokenStream) -> TokenStream {
8486
let syn::ItemFn {

0 commit comments

Comments
 (0)