InstGenFSI.cs 843 B

1234567891011121314151617181920212223242526272829
  1. namespace Ryujinx.Graphics.Shader.CodeGen.Glsl.Instructions
  2. {
  3. static class InstGenFSI
  4. {
  5. public static string FSIBegin(CodeGenContext context)
  6. {
  7. if (context.Config.GpuAccessor.QueryHostSupportsFragmentShaderInterlock())
  8. {
  9. return "beginInvocationInterlockARB()";
  10. }
  11. else if (context.Config.GpuAccessor.QueryHostSupportsFragmentShaderOrderingIntel())
  12. {
  13. return "beginFragmentShaderOrderingINTEL()";
  14. }
  15. return null;
  16. }
  17. public static string FSIEnd(CodeGenContext context)
  18. {
  19. if (context.Config.GpuAccessor.QueryHostSupportsFragmentShaderInterlock())
  20. {
  21. return "endInvocationInterlockARB()";
  22. }
  23. return null;
  24. }
  25. }
  26. }