This repository has been archived on 2026-01-05. You can view files and clone it, but cannot push or open issues/pull-requests.
ryubing/Ryujinx.Graphics.Nvdec/NvdecDecoderContext.cs

21 lines
393 B
C#

using Ryujinx.Graphics.Nvdec.H264;
using System;
namespace Ryujinx.Graphics.Nvdec
{
class NvdecDecoderContext : IDisposable
{
private Decoder _decoder;
public Decoder GetDecoder()
{
return _decoder ??= new Decoder();
}
public void Dispose()
{
_decoder?.Dispose();
_decoder = null;
}
}
}