yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Ralph PotterMake printf require that the first parameter be a string literal6fd3b430

main
424 B18 linesraw
1#version 450
2#extension GL_EXT_debug_printf : enable
3
4// a macro that expands to a string literal token is still a string literal
5#define FMT "macro expanded: %d"
6
7void main()
8{
9    debugPrintfEXT("ASDF \\ \? \x5C %d %d %d", 1, 2, 3);
10
11    // ABA{backspace}Z
12    debugPrintfEXT("\x41\x000042\x41\x8Z");
13
14    // B#${bell, aka \a}B1Z
15    debugPrintfEXT("\102\043\44\7\1021Z");
16
17    debugPrintfEXT(FMT, 4);
18}