2021-10-28 22:53:12 +00:00
|
|
|
namespace Ryujinx.Graphics.Shader.CodeGen.Glsl.Instructions
|
|
|
|
{
|
|
|
|
static class InstGenFSI
|
|
|
|
{
|
|
|
|
public static string FSIBegin(CodeGenContext context)
|
|
|
|
{
|
|
|
|
if (context.Config.GpuAccessor.QueryHostSupportsFragmentShaderInterlock())
|
|
|
|
{
|
|
|
|
return "beginInvocationInterlockARB()";
|
|
|
|
}
|
|
|
|
else if (context.Config.GpuAccessor.QueryHostSupportsFragmentShaderOrderingIntel())
|
|
|
|
{
|
|
|
|
return "beginFragmentShaderOrderingINTEL()";
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static string FSIEnd(CodeGenContext context)
|
|
|
|
{
|
|
|
|
if (context.Config.GpuAccessor.QueryHostSupportsFragmentShaderInterlock())
|
|
|
|
{
|
|
|
|
return "endInvocationInterlockARB()";
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
2023-06-28 06:59:13 +00:00
|
|
|
}
|