aboutsummaryrefslogblamecommitdiff
path: root/src/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGenFSI.cs
blob: 1697aa47e778a5d98cf824896c3956c154a98338 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                                             
                                                                         

                                                       
                                                                                  







                                                            
                                                                         





                                                     
 
namespace Ryujinx.Graphics.Shader.CodeGen.Glsl.Instructions
{
    static class InstGenFSI
    {
        public static string FSIBegin(CodeGenContext context)
        {
            if (context.HostCapabilities.SupportsFragmentShaderInterlock)
            {
                return "beginInvocationInterlockARB()";
            }
            else if (context.HostCapabilities.SupportsFragmentShaderOrderingIntel)
            {
                return "beginFragmentShaderOrderingINTEL()";
            }

            return null;
        }

        public static string FSIEnd(CodeGenContext context)
        {
            if (context.HostCapabilities.SupportsFragmentShaderInterlock)
            {
                return "endInvocationInterlockARB()";
            }

            return null;
        }
    }
}