2021-10-28 19:53:12 -03:00
|
|
|
namespace Ryujinx.Graphics.Shader.CodeGen.Glsl.Instructions
|
|
|
|
|
{
|
|
|
|
|
static class InstGenFSI
|
|
|
|
|
{
|
|
|
|
|
public static string FSIBegin(CodeGenContext context)
|
|
|
|
|
{
|
2023-08-13 22:26:42 -03:00
|
|
|
if (context.HostCapabilities.SupportsFragmentShaderInterlock)
|
2021-10-28 19:53:12 -03:00
|
|
|
{
|
|
|
|
|
return "beginInvocationInterlockARB()";
|
|
|
|
|
}
|
2023-08-13 22:26:42 -03:00
|
|
|
else if (context.HostCapabilities.SupportsFragmentShaderOrderingIntel)
|
2021-10-28 19:53:12 -03:00
|
|
|
{
|
|
|
|
|
return "beginFragmentShaderOrderingINTEL()";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string FSIEnd(CodeGenContext context)
|
|
|
|
|
{
|
2023-08-13 22:26:42 -03:00
|
|
|
if (context.HostCapabilities.SupportsFragmentShaderInterlock)
|
2021-10-28 19:53:12 -03:00
|
|
|
{
|
|
|
|
|
return "endInvocationInterlockARB()";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-06-28 08:59:13 +02:00
|
|
|
}
|