SupportBuffer.cs 849 B

123456789101112131415161718
  1. namespace Ryujinx.Graphics.Shader
  2. {
  3. public static class SupportBuffer
  4. {
  5. public const int FieldSize = 16; // Each field takes 16 bytes on default layout, even bool.
  6. public const int FragmentAlphaTestOffset = 0;
  7. public const int FragmentIsBgraOffset = FieldSize;
  8. public const int FragmentIsBgraCount = 8;
  9. public const int FragmentRenderScaleOffset = FragmentIsBgraOffset + FragmentIsBgraCount * FieldSize;
  10. public const int ComputeRenderScaleOffset = FragmentRenderScaleOffset + FieldSize; // Skip first scale that is used for the render target
  11. // One for the render target, 32 for the textures, and 8 for the images.
  12. public const int RenderScaleMaxCount = 1 + 32 + 8;
  13. public const int RequiredSize = FragmentRenderScaleOffset + RenderScaleMaxCount * FieldSize;
  14. }
  15. }