mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-02-25 06:25:34 +01:00
23 lines
442 B
C#
23 lines
442 B
C#
|
using SharpMetal.Metal;
|
||
|
using System;
|
||
|
using System.Runtime.Versioning;
|
||
|
|
||
|
namespace Ryujinx.Graphics.Metal
|
||
|
{
|
||
|
[SupportedOSPlatform("macos")]
|
||
|
readonly struct DisposableSampler : IDisposable
|
||
|
{
|
||
|
public MTLSamplerState Value { get; }
|
||
|
|
||
|
public DisposableSampler(MTLSamplerState sampler)
|
||
|
{
|
||
|
Value = sampler;
|
||
|
}
|
||
|
|
||
|
public void Dispose()
|
||
|
{
|
||
|
Value.Dispose();
|
||
|
}
|
||
|
}
|
||
|
}
|