mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-23 19:01:21 -08:00
1f554c1093
* Renaming part 1 * Renaming part 2 * Renaming part 3 * Renaming part 4 * Renaming part 5 * Renaming part 6 * Renaming part 7 * Renaming part 8 * Renaming part 9 * Renaming part 10 * General cleanup * Thought I got all of these * Apply #595 * Additional renaming * Tweaks from feedback * Rename files
64 lines
2.0 KiB
C#
64 lines
2.0 KiB
C#
using Ryujinx.Graphics.Gal;
|
|
using Ryujinx.Graphics.Graphics3d;
|
|
using Ryujinx.Graphics.Memory;
|
|
using Ryujinx.Graphics.VDec;
|
|
using Ryujinx.Graphics.Vic;
|
|
|
|
namespace Ryujinx.Graphics
|
|
{
|
|
public class NvGpu
|
|
{
|
|
public const int MaxViewportSize = 0x3FFF;
|
|
|
|
public IGalRenderer Renderer { get; private set; }
|
|
|
|
public GpuResourceManager ResourceManager { get; private set; }
|
|
|
|
public DmaPusher Pusher { get; private set; }
|
|
|
|
internal NvGpuFifo Fifo { get; private set; }
|
|
internal NvGpuEngine2d Engine2d { get; private set; }
|
|
internal NvGpuEngine3d Engine3d { get; private set; }
|
|
internal NvGpuEngineM2mf EngineM2mf { get; private set; }
|
|
internal NvGpuEngineP2mf EngineP2mf { get; private set; }
|
|
|
|
private CdmaProcessor _cdmaProcessor;
|
|
internal VideoDecoder VideoDecoder { get; private set; }
|
|
internal VideoImageComposer VideoImageComposer { get; private set; }
|
|
|
|
public NvGpu(IGalRenderer renderer)
|
|
{
|
|
Renderer = renderer;
|
|
|
|
ResourceManager = new GpuResourceManager(this);
|
|
|
|
Pusher = new DmaPusher(this);
|
|
|
|
Fifo = new NvGpuFifo(this);
|
|
Engine2d = new NvGpuEngine2d(this);
|
|
Engine3d = new NvGpuEngine3d(this);
|
|
EngineM2mf = new NvGpuEngineM2mf(this);
|
|
EngineP2mf = new NvGpuEngineP2mf(this);
|
|
|
|
_cdmaProcessor = new CdmaProcessor(this);
|
|
VideoDecoder = new VideoDecoder(this);
|
|
VideoImageComposer = new VideoImageComposer(this);
|
|
}
|
|
|
|
public void PushCommandBuffer(NvGpuVmm vmm, int[] cmdBuffer)
|
|
{
|
|
lock (_cdmaProcessor)
|
|
{
|
|
_cdmaProcessor.PushCommands(vmm, cmdBuffer);
|
|
}
|
|
}
|
|
|
|
public void UninitializeVideoDecoder()
|
|
{
|
|
lock (_cdmaProcessor)
|
|
{
|
|
FFmpegWrapper.Uninitialize();
|
|
}
|
|
}
|
|
}
|
|
} |