mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-01-11 20:10:38 +00:00
Some checks are pending
Canary release job / Release for linux-arm64 (push) Waiting to run
Canary release job / Release for linux-x64 (push) Waiting to run
Canary release job / Release for win-x64 (push) Waiting to run
Canary release job / Release MacOS universal (push) Waiting to run
Canary release job / Create GitLab Release (push) Blocked by required conditions
See merge request ryubing/ryujinx!195
22 lines
616 B
C#
22 lines
616 B
C#
using Ryujinx.Graphics.GAL.Multithreading.Commands.Sampler;
|
|
using Ryujinx.Graphics.GAL.Multithreading.Model;
|
|
|
|
namespace Ryujinx.Graphics.GAL.Multithreading.Resources
|
|
{
|
|
class ThreadedSampler : ISampler
|
|
{
|
|
private readonly ThreadedRenderer _renderer;
|
|
public ISampler Base;
|
|
|
|
public ThreadedSampler(ThreadedRenderer renderer)
|
|
{
|
|
_renderer = renderer;
|
|
}
|
|
|
|
public unsafe void Dispose()
|
|
{
|
|
_renderer.New<SamplerDisposeCommand>()->Set(new TableRef<ThreadedSampler>(_renderer, this));
|
|
_renderer.QueueCommand();
|
|
}
|
|
}
|
|
}
|