24 lines
613 B
C#
24 lines
613 B
C#
using System;
|
|
using RefreshCS;
|
|
|
|
namespace Campari
|
|
{
|
|
public class Sampler : GraphicsResource
|
|
{
|
|
protected override Action<IntPtr, IntPtr> 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
|
|
);
|
|
}
|
|
}
|
|
}
|