xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/spv.intrinsicsSpirvExecutionMode.frag (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
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