mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
34 lines
903 B
C#
34 lines
903 B
C#
using SharpDX.Direct3D11;
|
|
using SharpDX.DXGI;
|
|
using System;
|
|
|
|
namespace Remotely.ScreenCast.Win.Models
|
|
{
|
|
public class DirectXOutput : IDisposable
|
|
{
|
|
public DirectXOutput(Adapter1 adapter,
|
|
SharpDX.Direct3D11.Device device,
|
|
OutputDuplication outputDuplication,
|
|
Texture2D texture2D)
|
|
{
|
|
Adapter = adapter;
|
|
Device = device;
|
|
OutputDuplication = outputDuplication;
|
|
Texture2D = texture2D;
|
|
}
|
|
|
|
public Adapter1 Adapter { get; }
|
|
public SharpDX.Direct3D11.Device Device { get; }
|
|
public OutputDuplication OutputDuplication { get; }
|
|
public Texture2D Texture2D { get; }
|
|
|
|
public void Dispose()
|
|
{
|
|
Adapter?.Dispose();
|
|
Device?.Dispose();
|
|
OutputDuplication?.Dispose();
|
|
Texture2D?.Dispose();
|
|
}
|
|
}
|
|
}
|