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