blob: d50960b8ea2cf4b895a2b786eaacc999a5622447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//TEST:SIMPLE(filecheck=SPIRV): -target spirv -emit-spirv-directly -entry computeMain -stage compute -profile spirv_1_3
//TEST:SIMPLE(filecheck=GLSL): -target glsl -entry computeMain -stage compute -profile sm_5_0
//TEST:SIMPLE(filecheck=HLSL): -target hlsl -entry computeMain -stage compute -profile sm_5_0
//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target spirv -emit-spirv-directly -entry computeMain -stage compute -profile spirv_1_3 -ignore-capabilities
// CHECK_IGNORE_CAPS-NOT: warning 41012
// SPIRV: warning 41012
// SPIRV-NOT: spirv_1_2
// SPIRV-SAME: spvGroupNonUniformBallot
// GLSL: warning 41012
// GLSL-NOT: GLSL_400
// GLSL-NOT: GLSL_430
// GLSL-SAME: GL_KHR_shader_subgroup_basic
// HLSL: warning 41012
// HLSL-NOT: sm_5_1
// HLSL-SAME: sm_6_0
[numthreads(1,1,1)]
void computeMain()
{
if (WaveIsFirstLane())
return;
}
|