summaryrefslogtreecommitdiffstats
path: root/tests/language-feature/capability/explicit-shader-stage-2.slang
blob: 8ef3e158cd4955c4cf482d8cfe343b5ead12d5e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
//TEST:SIMPLE(filecheck=CHECK): -target hlsl -entry main -allow-glsl -profile sm_5_0
//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target hlsl -entry main -allow-glsl -profile sm_5_0 -ignore-capabilities

// CHECK: error 36107: entrypoint 'main' uses features that are not available in 'fragment' stage for 'hlsl'
//CHECK_IGNORE_CAPS-NOT: error 36100
[shader("fragment")]
float4 main()
{
    memoryBarrierAtomicCounter();
    return float4(1.0f);
}