MethodOffset.cs 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. CopyBufferParams = 0x100,
  20. CopyBufferSwizzle = 0x1c2,
  21. CopyBufferDstTexture = 0x1c3,
  22. CopyBufferSrcTexture = 0x1ca,
  23. RtColorState = 0x200,
  24. CopyTextureControl = 0x223,
  25. CopyRegion = 0x22c,
  26. CopyTexture = 0x237,
  27. ViewportTransform = 0x280,
  28. ViewportExtents = 0x300,
  29. VertexBufferDrawState = 0x35d,
  30. DepthMode = 0x35f,
  31. ClearColors = 0x360,
  32. ClearDepthValue = 0x364,
  33. ClearStencilValue = 0x368,
  34. DepthBiasState = 0x370,
  35. TextureBarrier = 0x378,
  36. StencilBackMasks = 0x3d5,
  37. InvalidateTextures = 0x3dd,
  38. TextureBarrierTiled = 0x3df,
  39. RtColorMaskShared = 0x3e4,
  40. RtDepthStencilState = 0x3f8,
  41. VertexAttribState = 0x458,
  42. RtControl = 0x487,
  43. RtDepthStencilSize = 0x48a,
  44. SamplerIndex = 0x48d,
  45. DepthTestEnable = 0x4b3,
  46. BlendIndependent = 0x4b9,
  47. DepthWriteEnable = 0x4ba,
  48. DepthTestFunc = 0x4c3,
  49. BlendStateCommon = 0x4cf,
  50. BlendEnableCommon = 0x4d7,
  51. BlendEnable = 0x4d8,
  52. StencilTestState = 0x4e0,
  53. YControl = 0x4eb,
  54. FirstVertex = 0x50d,
  55. FirstInstance = 0x50e,
  56. ResetCounter = 0x54c,
  57. RtDepthStencilEnable = 0x54e,
  58. ConditionState = 0x554,
  59. SamplerPoolState = 0x557,
  60. DepthBiasFactor = 0x55b,
  61. TexturePoolState = 0x55d,
  62. StencilBackTestState = 0x565,
  63. DepthBiasUnits = 0x56f,
  64. RtMsaaMode = 0x574,
  65. ShaderBaseAddress = 0x582,
  66. DrawEnd = 0x585,
  67. DrawBegin = 0x586,
  68. PrimitiveRestartState = 0x591,
  69. IndexBufferState = 0x5f2,
  70. IndexBufferCount = 0x5f8,
  71. DepthBiasClamp = 0x61f,
  72. VertexBufferInstanced = 0x620,
  73. FaceState = 0x646,
  74. ViewportTransformEnable = 0x64b,
  75. Clear = 0x674,
  76. RtColorMask = 0x680,
  77. ReportState = 0x6c0,
  78. Report = 0x6c3,
  79. VertexBufferState = 0x700,
  80. BlendState = 0x780,
  81. VertexBufferEndAddress = 0x7c0,
  82. ShaderState = 0x800,
  83. UniformBufferState = 0x8e0,
  84. UniformBufferUpdateData = 0x8e4,
  85. UniformBufferBindVertex = 0x904,
  86. UniformBufferBindTessControl = 0x90c,
  87. UniformBufferBindTessEvaluation = 0x914,
  88. UniformBufferBindGeometry = 0x91c,
  89. UniformBufferBindFragment = 0x924,
  90. TextureBufferIndex = 0x982
  91. }
  92. }