IGpuAccessor.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. namespace Ryujinx.Graphics.Shader
  2. {
  3. public interface IGpuAccessor
  4. {
  5. public void Log(string message)
  6. {
  7. // No default log output.
  8. }
  9. T MemoryRead<T>(ulong address) where T : unmanaged;
  10. public bool MemoryMapped(ulong address)
  11. {
  12. return true;
  13. }
  14. public int QueryComputeLocalSizeX()
  15. {
  16. return 1;
  17. }
  18. public int QueryComputeLocalSizeY()
  19. {
  20. return 1;
  21. }
  22. public int QueryComputeLocalSizeZ()
  23. {
  24. return 1;
  25. }
  26. public int QueryComputeLocalMemorySize()
  27. {
  28. return 0x1000;
  29. }
  30. public int QueryComputeSharedMemorySize()
  31. {
  32. return 0xc000;
  33. }
  34. public uint QueryConstantBufferUse()
  35. {
  36. return 0xffff;
  37. }
  38. public bool QueryIsTextureBuffer(int handle)
  39. {
  40. return false;
  41. }
  42. public bool QueryIsTextureRectangle(int handle)
  43. {
  44. return false;
  45. }
  46. public InputTopology QueryPrimitiveTopology()
  47. {
  48. return InputTopology.Points;
  49. }
  50. public int QueryStorageBufferOffsetAlignment()
  51. {
  52. return 16;
  53. }
  54. public bool QuerySupportsImageLoadFormatted()
  55. {
  56. return true;
  57. }
  58. public bool QuerySupportsNonConstantTextureOffset()
  59. {
  60. return true;
  61. }
  62. public TextureFormat QueryTextureFormat(int handle)
  63. {
  64. return TextureFormat.R8G8B8A8Unorm;
  65. }
  66. }
  67. }