summaryrefslogtreecommitdiffstats
path: root/tests/language-feature/capability/profile-implicitly-upgraded.slang
blob: b887231829cf3176288ecda622f2d2ca82a6aa04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SPIRV): -stage fragment -entry fragmentMain -target spirv -profile spirv_1_3

// We currently do not have GLSL profiles, pass in SPIRV profile instead. We need
// to pass in a profile parameter to emit the warning.
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_GLSL): -stage fragment -entry fragmentMain -target glsl -profile spirv_1_3

// CHECK_SPIRV: warning 41012{{.*}}'spvImageGatherExtended'
// CHECK_GLSL: warning 41012{{.*}}'GLSL_150 + GL_ARB_texture_gather'
float4 fragmentMain(float2 pos : SV_Position, Sampler2D<float> foo) : SV_Target
{
    return foo.Gather(uint2(pos));
}