summaryrefslogtreecommitdiffstats
path: root/tests/glsl/fragment-invocation-density-glsl.slang
blob: 7cee4620be196e0d0976b7400143aac14388504a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//TEST:SIMPLE(filecheck=CHECK-GLSL): -target glsl -stage fragment -entry main

// Test for EXT_fragment_invocation_density support (gl_FragSizeEXT and gl_FragInvocationCountEXT )
import glsl;

layout(location = 0) out highp vec4 FragColor;

void main()
{
    // CHECK-GLSL: #extension GL_EXT_fragment_invocation_density : require
    // CHECK-GLSL-DAG: gl_FragSizeEXT
    // CHECK-GLSL-DAG: gl_FragInvocationCountEXT

    FragColor = vec4(gl_FragSizeEXT.x, gl_FragSizeEXT.y, gl_FragInvocationCountEXT, 1.0);
}