2021-01-20 03:33:27 +00:00
|
|
|
using System;
|
|
|
|
using RefreshCS;
|
|
|
|
|
|
|
|
namespace MoonWorks.Graphics
|
|
|
|
{
|
|
|
|
public class Sampler : GraphicsResource
|
|
|
|
{
|
|
|
|
protected override Action<IntPtr, IntPtr> QueueDestroyFunction => Refresh.Refresh_QueueDestroySampler;
|
|
|
|
|
|
|
|
public Sampler(
|
|
|
|
GraphicsDevice device,
|
|
|
|
ref SamplerState samplerState
|
|
|
|
) : base(device)
|
|
|
|
{
|
|
|
|
Handle = Refresh.Refresh_CreateSampler(
|
|
|
|
device.Handle,
|
2021-01-22 01:27:25 +00:00
|
|
|
samplerState.ToRefreshSamplerStateCreateInfo()
|
2021-01-20 03:33:27 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|