mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
29 lines
843 B
C#
29 lines
843 B
C#
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|