DirectX 10交换链扩展

时间:2015-11-09 11:32:25

标签: c++ directx

我想在Windows上禁用交换链扩展。 我在窗口顶部渲染1600x900四边形(1366x768),但它是拉伸的。

Desc_.BufferCount        = 1;
Desc_.OutputWindow       = windowWnd;
Desc_.Windowed           = true;
Desc_.BufferDesc.Format  = DXGI_FORMAT_R8G8B8A8_UNORM;
Desc_.BufferDesc.Height  = height;
Desc_.BufferDesc.Width   = width;
Desc_.BufferUsage        = DXGI_USAGE_RENDER_TARGET_OUTPUT;
Desc_.SampleDesc.Count   = 1;
Desc_.SampleDesc.Quality = 0;
Desc_.BufferDesc.RefreshRate.Numerator = 60;
Desc_.BufferDesc.RefreshRate.Denominator = 1;
swapChainDesc_.BufferDesc.ScanlineOrdering =  DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE;
Desc_.BufferDesc.Scaling = DXGI_MODE_SCALING_UNSPECIFIED;
Desc_.SwapEffect = DXGI_SWAP_EFFECT_DISCARD;
Desc_.Flags = 0;

这是DXGI交换链的初始化

0 个答案:

没有答案