MethodOffset.cs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. namespace Ryujinx.Graphics.Gpu.State
  2. {
  3. /// <summary>
  4. /// GPU method offset.
  5. /// </summary>
  6. /// <remarks>
  7. /// This is indexed in 32 bits word.
  8. /// </remarks>
  9. enum MethodOffset
  10. {
  11. I2mParams = 0x60,
  12. LaunchDma = 0x6c,
  13. LoadInlineData = 0x6d,
  14. CopyDstTexture = 0x80,
  15. CopySrcTexture = 0x8c,
  16. DispatchParamsAddress = 0xad,
  17. Dispatch = 0xaf,
  18. CopyBuffer = 0xc0,
  19. RasterizeEnable = 0xdf,
  20. CopyBufferParams = 0x100,
  21. CopyBufferSwizzle = 0x1c2,
  22. CopyBufferDstTexture = 0x1c3,
  23. CopyBufferSrcTexture = 0x1ca,
  24. RtColorState = 0x200,
  25. CopyTextureControl = 0x223,
  26. CopyRegion = 0x22c,
  27. CopyTexture = 0x237,
  28. ViewportTransform = 0x280,
  29. ViewportExtents = 0x300,
  30. VertexBufferDrawState = 0x35d,
  31. DepthMode = 0x35f,
  32. ClearColors = 0x360,
  33. ClearDepthValue = 0x364,
  34. ClearStencilValue = 0x368,
  35. DepthBiasState = 0x370,
  36. TextureBarrier = 0x378,
  37. ScissorState = 0x380,
  38. StencilBackMasks = 0x3d5,
  39. InvalidateTextures = 0x3dd,
  40. TextureBarrierTiled = 0x3df,
  41. RtColorMaskShared = 0x3e4,
  42. RtDepthStencilState = 0x3f8,
  43. VertexAttribState = 0x458,
  44. RtControl = 0x487,
  45. RtDepthStencilSize = 0x48a,
  46. SamplerIndex = 0x48d,
  47. DepthTestEnable = 0x4b3,
  48. BlendIndependent = 0x4b9,
  49. DepthWriteEnable = 0x4ba,
  50. DepthTestFunc = 0x4c3,
  51. BlendStateCommon = 0x4cf,
  52. BlendEnableCommon = 0x4d7,
  53. BlendEnable = 0x4d8,
  54. StencilTestState = 0x4e0,
  55. YControl = 0x4eb,
  56. FirstVertex = 0x50d,
  57. FirstInstance = 0x50e,
  58. PointSize = 0x546,
  59. ResetCounter = 0x54c,
  60. RtDepthStencilEnable = 0x54e,
  61. ConditionState = 0x554,
  62. SamplerPoolState = 0x557,
  63. DepthBiasFactor = 0x55b,
  64. TexturePoolState = 0x55d,
  65. StencilBackTestState = 0x565,
  66. DepthBiasUnits = 0x56f,
  67. RtMsaaMode = 0x574,
  68. ShaderBaseAddress = 0x582,
  69. DrawEnd = 0x585,
  70. DrawBegin = 0x586,
  71. PrimitiveRestartState = 0x591,
  72. IndexBufferState = 0x5f2,
  73. IndexBufferCount = 0x5f8,
  74. DepthBiasClamp = 0x61f,
  75. VertexBufferInstanced = 0x620,
  76. FaceState = 0x646,
  77. ViewportTransformEnable = 0x64b,
  78. Clear = 0x674,
  79. RtColorMask = 0x680,
  80. ReportState = 0x6c0,
  81. Report = 0x6c3,
  82. VertexBufferState = 0x700,
  83. BlendState = 0x780,
  84. VertexBufferEndAddress = 0x7c0,
  85. ShaderState = 0x800,
  86. FirmwareCall0 = 0x8c0,
  87. FirmwareCall1 = 0x8c1,
  88. FirmwareCall2 = 0x8c2,
  89. FirmwareCall3 = 0x8c3,
  90. FirmwareCall4 = 0x8c4,
  91. FirmwareCall5 = 0x8c5,
  92. FirmwareCall6 = 0x8c6,
  93. FirmwareCall7 = 0x8c7,
  94. UniformBufferState = 0x8e0,
  95. UniformBufferUpdateData = 0x8e4,
  96. UniformBufferBindVertex = 0x904,
  97. UniformBufferBindTessControl = 0x90c,
  98. UniformBufferBindTessEvaluation = 0x914,
  99. UniformBufferBindGeometry = 0x91c,
  100. UniformBufferBindFragment = 0x924,
  101. TextureBufferIndex = 0x982
  102. }
  103. }