AttributeConsts.cs 1.2 KB

123456789101112131415161718192021222324252627282930
  1. namespace Ryujinx.Graphics.Shader.IntermediateRepresentation
  2. {
  3. static class AttributeConsts
  4. {
  5. public const int Layer = 0x064;
  6. public const int PointSize = 0x06c;
  7. public const int PositionX = 0x070;
  8. public const int PositionY = 0x074;
  9. public const int PositionZ = 0x078;
  10. public const int PositionW = 0x07c;
  11. public const int PointCoordX = 0x2e0;
  12. public const int PointCoordY = 0x2e4;
  13. public const int TessCoordX = 0x2f0;
  14. public const int TessCoordY = 0x2f4;
  15. public const int InstanceId = 0x2f8;
  16. public const int VertexId = 0x2fc;
  17. public const int FrontFacing = 0x3fc;
  18. public const int UserAttributesCount = 32;
  19. public const int UserAttributeBase = 0x80;
  20. public const int UserAttributeEnd = UserAttributeBase + UserAttributesCount * 16;
  21. //Note: Those attributes are used internally by the translator
  22. //only, they don't exist on Maxwell.
  23. public const int FragmentOutputDepth = 0x1000000;
  24. public const int FragmentOutputColorBase = 0x1000010;
  25. public const int FragmentOutputColorEnd = FragmentOutputColorBase + 8 * 16;
  26. }
  27. }