mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-05 02:42:01 +00:00
1eea35554c
* Use a better viewport flipping approach * New approach to detect depth mode * nit: Sort method on the OpenGL backend * Adjust spacing on comment * Unswap near and far parameters based on ScaleZ
72 lines
1.4 KiB
C#
72 lines
1.4 KiB
C#
namespace Ryujinx.Graphics.Shader
|
|
{
|
|
public interface IGpuAccessor
|
|
{
|
|
public void Log(string message)
|
|
{
|
|
// No default log output.
|
|
}
|
|
|
|
T MemoryRead<T>(ulong address) where T : unmanaged;
|
|
|
|
public int QueryComputeLocalSizeX()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
public int QueryComputeLocalSizeY()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
public int QueryComputeLocalSizeZ()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
public int QueryComputeLocalMemorySize()
|
|
{
|
|
return 0x1000;
|
|
}
|
|
|
|
public int QueryComputeSharedMemorySize()
|
|
{
|
|
return 0xc000;
|
|
}
|
|
|
|
public bool QueryIsTextureBuffer(int handle)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public bool QueryIsTextureRectangle(int handle)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public InputTopology QueryPrimitiveTopology()
|
|
{
|
|
return InputTopology.Points;
|
|
}
|
|
|
|
public int QueryStorageBufferOffsetAlignment()
|
|
{
|
|
return 16;
|
|
}
|
|
|
|
public bool QuerySupportsImageLoadFormatted()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public bool QuerySupportsNonConstantTextureOffset()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public TextureFormat QueryTextureFormat(int handle)
|
|
{
|
|
return TextureFormat.R8G8B8A8Unorm;
|
|
}
|
|
}
|
|
}
|