yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
0d7d6468d
master
1//TEST:SIMPLE(filecheck=CHECK_SPIRV): -target spirv -stage compute -entry main -allow-glsl 2//TEST:SIMPLE(filecheck=CHECK_GLSL): -target glsl -stage compute -entry main -allow-glsl 3 4void main() 5{ 6 debugPrintfEXT("test"); 7 debugPrintfEXT(R"(test1 "%d %d")", 5, 6); 8 9 // CHECK_SPIRV: %[[SET:[0-9]+]] = OpExtInstImport "NonSemantic.DebugPrintf" 10 // CHECK_SPIRV: {{.*}} = OpExtInst %{{[a-zA-Z0-9_]+}} %[[SET]] 1 %{{[a-zA-Z0-9_]+}} 11 // CHECK_SPIRV: {{.*}} = OpExtInst %{{[a-zA-Z0-9_]+}} %[[SET]] 1 %{{[a-zA-Z0-9_]+}} %int_5 %int_6 12 13 // CHECK_GLSL: debugPrintfEXT("test") 14 // CHECK_GLSL: debugPrintfEXT("test1 \"%d %d\"", 5, 6); 15}