using System;
using RefreshCS;
namespace Nerfed.Runtime.Graphics;
///
/// 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()
);
}
}