Macro spirv_std_macros::debug_printf

source ·
debug_printf!() { /* proc-macro */ }
Expand description

Print a formatted string with a newline using the debug printf extension.

Examples:

debug_printfln!("uv: %v2f", uv);
debug_printfln!("pos.x: %f, pos.z: %f, int: %i", pos.x, pos.z, int);

See https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/main/docs/debug_printf.md#debug-printf-format-string for formatting rules.