22 lines
674 B
C#
22 lines
674 B
C#
|
using System;
|
|||
|
using RefreshCS;
|
|||
|
|
|||
|
namespace Campari
|
|||
|
{
|
|||
|
class DepthStencilTarget : GraphicsResource
|
|||
|
{
|
|||
|
public uint Width { get; }
|
|||
|
public uint Height { get; }
|
|||
|
public Refresh.DepthFormat Format { get; }
|
|||
|
|
|||
|
protected override Action<IntPtr, IntPtr> QueueDestroyFunction => Refresh.Refresh_QueueDestroyDepthStencilTarget;
|
|||
|
|
|||
|
public DepthStencilTarget(RefreshDevice device, uint width, uint height, Refresh.DepthFormat depthFormat) : base(device)
|
|||
|
{
|
|||
|
Handle = Refresh.Refresh_CreateDepthStencilTarget(device.Handle, width, height, depthFormat);
|
|||
|
Width = width;
|
|||
|
Height = height;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|