2020-05-05 18:02:28 -07:00
|
|
|
|
namespace Ryujinx.Graphics.Shader
|
|
|
|
|
{
|
|
|
|
|
public interface IGpuAccessor
|
|
|
|
|
{
|
2020-11-08 03:10:00 -08:00
|
|
|
|
void Log(string message)
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
|
|
|
|
// No default log output.
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-11 11:59:42 -07:00
|
|
|
|
uint ConstantBuffer1Read(int offset)
|
|
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-05 18:02:28 -07:00
|
|
|
|
T MemoryRead<T>(ulong address) where T : unmanaged;
|
|
|
|
|
|
2020-11-08 03:10:00 -08:00
|
|
|
|
bool MemoryMapped(ulong address)
|
2020-10-02 22:43:33 -07:00
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-08 03:10:00 -08:00
|
|
|
|
int QueryComputeLocalSizeX()
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-08 03:10:00 -08:00
|
|
|
|
int QueryComputeLocalSizeY()
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-08 03:10:00 -08:00
|
|
|
|
int QueryComputeLocalSizeZ()
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-08 03:10:00 -08:00
|
|
|
|
int QueryComputeLocalMemorySize()
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
|
|
|
|
return 0x1000;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-08 03:10:00 -08:00
|
|
|
|
int QueryComputeSharedMemorySize()
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
|
|
|
|
return 0xc000;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-08 03:10:00 -08:00
|
|
|
|
uint QueryConstantBufferUse()
|
2020-10-12 17:40:50 -07:00
|
|
|
|
{
|
2021-05-20 11:12:15 -07:00
|
|
|
|
return 0;
|
2020-10-12 17:40:50 -07:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-11 14:01:06 -07:00
|
|
|
|
bool QueryHostHasFrontFacingBug()
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-11 14:01:06 -07:00
|
|
|
|
bool QueryHostHasVectorIndexingBug()
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-11 14:01:06 -07:00
|
|
|
|
int QueryHostStorageBufferOffsetAlignment()
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
2021-08-11 14:01:06 -07:00
|
|
|
|
return 16;
|
2020-05-05 18:02:28 -07:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-11 14:01:06 -07:00
|
|
|
|
bool QueryHostSupportsImageLoadFormatted()
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
2021-08-11 14:01:06 -07:00
|
|
|
|
return true;
|
2020-05-05 18:02:28 -07:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-11 14:01:06 -07:00
|
|
|
|
bool QueryHostSupportsNonConstantTextureOffset()
|
2020-05-27 02:00:21 -07:00
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-11 14:01:06 -07:00
|
|
|
|
bool QueryHostSupportsTextureShadowLod()
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-11 14:01:06 -07:00
|
|
|
|
bool QueryIsTextureBuffer(int handle, int cbufSlot = -1)
|
2021-06-24 15:54:50 -07:00
|
|
|
|
{
|
2021-08-11 14:01:06 -07:00
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool QueryIsTextureRectangle(int handle, int cbufSlot = -1)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
InputTopology QueryPrimitiveTopology()
|
|
|
|
|
{
|
|
|
|
|
return InputTopology.Points;
|
2021-06-24 15:54:50 -07:00
|
|
|
|
}
|
|
|
|
|
|
2021-05-19 11:05:43 -07:00
|
|
|
|
TextureFormat QueryTextureFormat(int handle, int cbufSlot = -1)
|
2020-05-05 18:02:28 -07:00
|
|
|
|
{
|
|
|
|
|
return TextureFormat.R8G8B8A8Unorm;
|
|
|
|
|
}
|
2020-12-01 15:13:27 -08:00
|
|
|
|
|
|
|
|
|
bool QueryEarlyZForce()
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2020-05-05 18:02:28 -07:00
|
|
|
|
}
|
|
|
|
|
}
|