IGpuAccessor.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. namespace Ryujinx.Graphics.Shader
  2. {
  3. public interface IGpuAccessor
  4. {
  5. void Log(string message)
  6. {
  7. // No default log output.
  8. }
  9. uint ConstantBuffer1Read(int offset)
  10. {
  11. return 0;
  12. }
  13. T MemoryRead<T>(ulong address) where T : unmanaged;
  14. bool MemoryMapped(ulong address)
  15. {
  16. return true;
  17. }
  18. int QueryComputeLocalSizeX()
  19. {
  20. return 1;
  21. }
  22. int QueryComputeLocalSizeY()
  23. {
  24. return 1;
  25. }
  26. int QueryComputeLocalSizeZ()
  27. {
  28. return 1;
  29. }
  30. int QueryComputeLocalMemorySize()
  31. {
  32. return 0x1000;
  33. }
  34. int QueryComputeSharedMemorySize()
  35. {
  36. return 0xc000;
  37. }
  38. uint QueryConstantBufferUse()
  39. {
  40. return 0;
  41. }
  42. bool QueryHostHasFrontFacingBug()
  43. {
  44. return false;
  45. }
  46. bool QueryHostHasVectorIndexingBug()
  47. {
  48. return false;
  49. }
  50. int QueryHostStorageBufferOffsetAlignment()
  51. {
  52. return 16;
  53. }
  54. bool QueryHostSupportsImageLoadFormatted()
  55. {
  56. return true;
  57. }
  58. bool QueryHostSupportsNonConstantTextureOffset()
  59. {
  60. return true;
  61. }
  62. bool QueryHostSupportsShaderBallot()
  63. {
  64. return true;
  65. }
  66. bool QueryHostSupportsTextureShadowLod()
  67. {
  68. return true;
  69. }
  70. SamplerType QuerySamplerType(int handle, int cbufSlot = -1)
  71. {
  72. return SamplerType.Texture2D;
  73. }
  74. bool QueryIsTextureRectangle(int handle, int cbufSlot = -1)
  75. {
  76. return false;
  77. }
  78. InputTopology QueryPrimitiveTopology()
  79. {
  80. return InputTopology.Points;
  81. }
  82. TextureFormat QueryTextureFormat(int handle, int cbufSlot = -1)
  83. {
  84. return TextureFormat.R8G8B8A8Unorm;
  85. }
  86. bool QueryEarlyZForce()
  87. {
  88. return false;
  89. }
  90. }
  91. }