mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
22 lines
442 B
C#
22 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();
|
|
}
|
|
}
|
|
}
|