blob: 316bda5f984eebb62ce3042cda61371e35f4cff8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//TEST:SIMPLE(filecheck=HLSL): -entry main -target hlsl -stage fragment
//TEST:SIMPLE(filecheck=GLSL): -entry main -target glsl -stage fragment
//TEST:SIMPLE(filecheck=METAL): -entry main -target metal -stage fragment
//TEST:SIMPLE(filecheck=SPIRV): -entry main -target spirv -stage fragment
//TEST:SIMPLE(filecheck=SPIRV): -entry main -target spirv-asm -stage fragment
float4 main() : SV_Target
{
//HLSL: IsHelperLane()
//GLSL: GL_EXT_demote_to_helper_invocation
//GLSL: gl_HelperInvocation()
//METAL: simd_is_helper_thread()
//SPIRV: DemoteToHelperInvocation
//SPIRV: SPV_EXT_demote_to_helper_invocation
//SPIRV: OpIsHelperInvocationEXT
return float4(IsHelperLane());
}
|