using System; using RefreshCS; namespace Campari { public class Sampler : GraphicsResource { protected override Action QueueDestroyFunction => Refresh.Refresh_QueueDestroySampler; public Sampler( GraphicsDevice device, ref SamplerState samplerState ) : base(device) { var refreshSamplerStateCreateInfo = samplerState.ToRefreshSamplerStateCreateInfo(); Handle = Refresh.Refresh_CreateSampler( device.Handle, ref refreshSamplerStateCreateInfo ); } } }