summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2017-10-23 23:13:37 -0400
committerYong He <yonghe@outlook.com>2017-10-23 23:13:37 -0400
commitff4f9d9d129fccc56ac01d841295120ded789696 (patch)
tree799cca7c17c8cd777b6ebabf52a44e5db1457ef6 /tools
parentdeba0d8dd5a2580ecbffd6db00307a4ee022a58b (diff)
test 6
Diffstat (limited to 'tools')
-rw-r--r--tools/render-test/render-d3d11.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/render-test/render-d3d11.cpp b/tools/render-test/render-d3d11.cpp
index 8b930182d..2f7f0aad4 100644
--- a/tools/render-test/render-d3d11.cpp
+++ b/tools/render-test/render-d3d11.cpp
@@ -384,9 +384,13 @@ public:
{
ID3D11Texture2D* texture;
D3D11_TEXTURE2D_DESC textureDesc;
- dxBackBufferTexture->GetDesc(&textureDesc);
+ //dxBackBufferTexture->GetDesc(&textureDesc);
textureDesc.ArraySize = 1;
textureDesc.MipLevels = 1;
+ textureDesc.SampleDesc.Count = 1;
+ textureDesc.SampleDesc.Quality = 0;
+ textureDesc.Width = gWindowWidth;
+ textureDesc.Height = gWindowHeight;
textureDesc.BindFlags = D3D11_BIND_RENDER_TARGET;
textureDesc.CPUAccessFlags = D3D11_CPU_ACCESS_READ;
textureDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;