aboutsummaryrefslogtreecommitdiff
path: root/src/Renderer_DX12.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Renderer_DX12.cpp')
-rw-r--r--src/Renderer_DX12.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Renderer_DX12.cpp b/src/Renderer_DX12.cpp
index 3b4cec3..59d94cf 100644
--- a/src/Renderer_DX12.cpp
+++ b/src/Renderer_DX12.cpp
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2008-2016, NVIDIA CORPORATION. All rights reserved.
+* Copyright (c) 2008-2017, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
@@ -34,7 +34,6 @@ private:
//--------------------------------------------------------------------------------
void GFSDK::SSAO::D3D12::Renderer::CreateResources(GFSDK_D3D12_GraphicsContext* pGraphicsContext)
{
- m_States.Create(pGraphicsContext);
m_Shaders.Create(pGraphicsContext->pDevice);
m_GlobalCB.Create(pGraphicsContext, eGlobalCB, 0);
@@ -75,7 +74,6 @@ void GFSDK::SSAO::D3D12::Renderer::ReleaseResources()
m_BlurXPSO.Release();
m_BlurYPSO.Release();
- m_States.Release();
m_Shaders.Release();
m_RTs.Release();
}
@@ -566,6 +564,13 @@ void GFSDK::SSAO::D3D12::Renderer::Render(GFSDK_D3D12_GraphicsContext* pGraphics
m_GraphicsContext.pCmdList->IASetPrimitiveTopology(D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP);
+ D3D12_RECT ScissorRect = {};
+ ScissorRect.left = 0;
+ ScissorRect.top = 0;
+ ScissorRect.right = 16384;
+ ScissorRect.bottom = 16384;
+ m_GraphicsContext.pCmdList->RSSetScissorRects(1, &ScissorRect);
+
m_GlobalCB.UpdateBuffer(pGraphicsContext, RenderMask);
RenderHBAOPlus(pGraphicsContext, RenderMask);