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