blob: e530881bd0568b4d213ddd78a5e9332910fea840 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry main -profile cs_6_1
void test()
{
discard; // This should lead to `test` having `fragment` capability requirement.
}
[shader("compute")]
[numthreads(1,1,1)]
void main()
{
// CHECK: error 36107
test(); // compute shader cannot call `test` that require capabiltiy `fragment`.
}
|