blob: 4146eab04c2904607142e4b135897bdc996a10b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//TEST:SIMPLE(filecheck=CHECK_SPIRV): -target spirv -stage compute -entry main -allow-glsl
//TEST:SIMPLE(filecheck=CHECK_GLSL): -target glsl -stage compute -entry main -allow-glsl
void main()
{
debugPrintfEXT("test");
debugPrintfEXT(R"(test1 "%d %d")", 5, 6);
// CHECK_SPIRV: %[[SET:[0-9]+]] = OpExtInstImport "NonSemantic.DebugPrintf"
// CHECK_SPIRV: {{.*}} = OpExtInst %{{[a-zA-Z0-9_]+}} %[[SET]] 1 %{{[a-zA-Z0-9_]+}}
// CHECK_SPIRV: {{.*}} = OpExtInst %{{[a-zA-Z0-9_]+}} %[[SET]] 1 %{{[a-zA-Z0-9_]+}} %int_5 %int_6
// CHECK_GLSL: debugPrintfEXT("test")
// CHECK_GLSL: debugPrintfEXT("test1 \"%d %d\"", 5, 6);
}
|