-
Notifications
You must be signed in to change notification settings - Fork 45
/
PresentationParameters.cs
37 lines (27 loc) · 1.05 KB
/
PresentationParameters.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Vortice.DXGI;
namespace DirectX12GameEngine.Graphics
{
public class PresentationParameters
{
public PresentationParameters()
{
}
public PresentationParameters(int backBufferWidth, int backBufferHeight)
: this(backBufferWidth, backBufferHeight, PixelFormat.B8G8R8A8_UNorm)
{
}
public PresentationParameters(int backBufferWidth, int backBufferHeight, PixelFormat backBufferFomat)
{
BackBufferWidth = backBufferWidth;
BackBufferHeight = backBufferHeight;
BackBufferFormat = backBufferFomat;
}
public int BackBufferWidth { get; set; }
public int BackBufferHeight { get; set; }
public PixelFormat BackBufferFormat { get; set; } = PixelFormat.B8G8R8A8_UNorm;
public PixelFormat DepthStencilFormat { get; set; } = PixelFormat.D32_Float;
public PresentParameters PresentParameters { get; set; }
public bool Stereo { get; set; }
public int SyncInterval { get; set; } = 1;
}
}