mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 14:56:27 +00:00
Document gpu-only (#489)
This commit is contained in:
parent
7348f3389d
commit
cb8477df15
@ -79,6 +79,8 @@ pub fn spirv(_attr: TokenStream, item: TokenStream) -> TokenStream {
|
||||
tokens.into_iter().collect()
|
||||
}
|
||||
|
||||
/// Marks a function as runnable only on the GPU, and will panic on
|
||||
/// CPU platforms.
|
||||
#[proc_macro_attribute]
|
||||
pub fn gpu_only(_attr: TokenStream, item: TokenStream) -> TokenStream {
|
||||
let syn::ItemFn {
|
||||
|
Loading…
Reference in New Issue
Block a user