using System;
using RefreshCS;
namespace MoonWorks.Graphics
{
///
/// A sampler specifies how a texture will be sampled in a shader.
///
public class Sampler : GraphicsResource
{
protected override Action QueueDestroyFunction => Refresh.Refresh_QueueDestroySampler;
public Sampler(
GraphicsDevice device,
in SamplerCreateInfo samplerCreateInfo
) : base(device)
{
Handle = Refresh.Refresh_CreateSampler(
device.Handle,
samplerCreateInfo.ToRefreshSamplerStateCreateInfo()
);
}
}
}