From 7aae89a4a8f8a5ce1b6060a9548368b24a4e62ab Mon Sep 17 00:00:00 2001 From: Stefan Dyulgerov Date: Fri, 4 Feb 2022 22:25:44 +0200 Subject: [PATCH] Fix for : error C2248: 'Microsoft::WRL::ComPtr::ptr_': cannot access protected member declared in class 'Microsoft::WRL::ComPtr' (#756) --- .../SampleCore/util/GpuResourceStateTracker.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Samples/Desktop/D3D12Raytracing/src/D3D12RaytracingRealTimeDenoisedAmbientOcclusion/SampleCore/util/GpuResourceStateTracker.h b/Samples/Desktop/D3D12Raytracing/src/D3D12RaytracingRealTimeDenoisedAmbientOcclusion/SampleCore/util/GpuResourceStateTracker.h index fbac0142e..c6092ccee 100644 --- a/Samples/Desktop/D3D12Raytracing/src/D3D12RaytracingRealTimeDenoisedAmbientOcclusion/SampleCore/util/GpuResourceStateTracker.h +++ b/Samples/Desktop/D3D12Raytracing/src/D3D12RaytracingRealTimeDenoisedAmbientOcclusion/SampleCore/util/GpuResourceStateTracker.h @@ -15,7 +15,7 @@ class GpuResourceStateTracker { public: - void Bind(Microsoft::WRL::ComPtr commandList) { m_commandList = commandList; } + void Bind(Microsoft::WRL::ComPtr commandList) { m_commandList = commandList; } void Reset(); void TransitionResource(GpuResource* Resource, D3D12_RESOURCE_STATES NewState, bool FlushImmediate = false); @@ -25,7 +25,7 @@ class GpuResourceStateTracker protected: - Microsoft::WRL::ComPtr m_commandList; + Microsoft::WRL::ComPtr m_commandList; static const UINT c_MaxNumBarriers = 16; D3D12_RESOURCE_BARRIER m_ResourceBarrierBuffer[c_MaxNumBarriers]; UINT m_NumBarriersToFlush = 0;