1#version 450 core
2
3#extension GL_EXT_spirv_intrinsics: enable
4
5#define GL_ARB_shader_stencil_export 1
6
7spirv_execution_mode(5027); // StencilRefReplacingEXT
8
9spirv_decorate(extensions = ["SPV_EXT_shader_stencil_export"], capabilities = [5013], 11, 5014)
10out int gl_FragStencilRef;
11
12layout(location = 0) in flat int color;
13
14void main()
15{
16    gl_FragStencilRef = color;
17}
18