diff options
| author | Louis Bavoil <[email protected]> | 2018-03-30 21:31:25 +0200 |
|---|---|---|
| committer | Louis Bavoil <[email protected]> | 2018-03-30 21:31:25 +0200 |
| commit | 7dfdbb54a778d4d9184037fdc74c85debd68011b (patch) | |
| tree | 15c8800522d8bd5a5153d21a36989aba0b4d4565 /samples/dual_layer/D3D12/src/HBAOSampleD3D12.cpp | |
| parent | HBAO+ 4.0.0.23740451 (diff) | |
| download | hbaoplus-7dfdbb54a778d4d9184037fdc74c85debd68011b.tar.xz hbaoplus-7dfdbb54a778d4d9184037fdc74c85debd68011b.zip | |
HBAO+ 4.0.0.23827312
Diffstat (limited to 'samples/dual_layer/D3D12/src/HBAOSampleD3D12.cpp')
| -rw-r--r-- | samples/dual_layer/D3D12/src/HBAOSampleD3D12.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samples/dual_layer/D3D12/src/HBAOSampleD3D12.cpp b/samples/dual_layer/D3D12/src/HBAOSampleD3D12.cpp index cf10894..d5ce0d1 100644 --- a/samples/dual_layer/D3D12/src/HBAOSampleD3D12.cpp +++ b/samples/dual_layer/D3D12/src/HBAOSampleD3D12.cpp @@ -43,6 +43,7 @@ void HBAOSampleD3D12::Initialize() deviceParams.windowPosY = 0; mDeviceManager.CreateWindowDeviceAndSwapChain(deviceParams, L"HBAO+ D3D12 Sample"); + mDeviceManager.SetPrimaryRenderTargetClearColor(false, nullptr); mDeviceManager.AddControllerToBack(this); @@ -210,11 +211,9 @@ bool HBAOSampleD3D12::InitializeHBAOPlus() DescriptorHeaps.CBV_SRV_UAV.pDescHeap = mSSAODescriptorHeapCBVSRVUAV.Get(); DescriptorHeaps.CBV_SRV_UAV.BaseIndex = kNumTotalAppDescriptors; - DescriptorHeaps.CBV_SRV_UAV.NumDescriptors = GFSDK_SSAO_NUM_DESCRIPTORS_CBV_SRV_UAV_HEAP_D3D12; DescriptorHeaps.RTV.pDescHeap = mSSAODescriptorHeapRTV.Get(); DescriptorHeaps.RTV.BaseIndex = 0; - DescriptorHeaps.RTV.NumDescriptors = GFSDK_SSAO_NUM_DESCRIPTORS_RTV_HEAP_D3D12; GFSDK_SSAO_Status status = GFSDK_SSAO_CreateContext_D3D12(mDevice, NodeMask, DescriptorHeaps, &mSSAOContext, &CustomHeap); assert(status == GFSDK_SSAO_OK); |