yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

davli-nvImplement SPV_EXT_fragment_invocation_density (SPV_NV_shading_rate) (#8037)83675103a

master
509 B15 linesraw
1//TEST:SIMPLE(filecheck=CHECK-GLSL): -target glsl -stage fragment -entry main
2
3// Test for EXT_fragment_invocation_density support (gl_FragSizeEXT and gl_FragInvocationCountEXT )
4import glsl;
5
6layout(location = 0) out highp vec4 FragColor;
7
8void main()
9{
10    // CHECK-GLSL: #extension GL_EXT_fragment_invocation_density : require
11    // CHECK-GLSL-DAG: gl_FragSizeEXT
12    // CHECK-GLSL-DAG: gl_FragInvocationCountEXT
13
14    FragColor = vec4(gl_FragSizeEXT.x, gl_FragSizeEXT.y, gl_FragInvocationCountEXT, 1.0);
15}