Expand description
Macros§
- Image
- A macro for creating SPIR-V
OpTypeImage
types. Always produces aspirv_std::image::Image<...>
type. - debug_
printf - Print a formatted string using the debug printf extension.
- debug_
printfln - Similar to
debug_printf
but appends a newline to the format string.
Attribute Macros§
- gpu_
only - Marks a function as runnable only on the GPU, and will panic on CPU platforms.
- spirv
- Replaces all (nested) occurrences of the
#[spirv(..)]
attribute with#[cfg_attr(target_arch="spirv", rust_gpu::spirv(..))]
. - spirv_
recursive_ for_ testing - For testing only! Is not reexported in
spirv-std
, but reachable viaspirv_std::macros::spirv_recursive_for_testing
.