From 399fb28a80e1c8c7e9255c5254000c560d0a1308 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 31 Jul 2016 19:33:03 +0700 Subject: [PATCH] Mark resource mapping functions as unimplemented so I don't forget --- renderdoc/driver/d3d12/d3d12_resources.h | 36 +++++++++++++----------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/renderdoc/driver/d3d12/d3d12_resources.h b/renderdoc/driver/d3d12/d3d12_resources.h index 1a89c59b1..580215699 100644 --- a/renderdoc/driver/d3d12/d3d12_resources.h +++ b/renderdoc/driver/d3d12/d3d12_resources.h @@ -552,26 +552,35 @@ public: ////////////////////////////// // implement ID3D12Resource - virtual HRESULT STDMETHODCALLTYPE Map(UINT Subresource, const D3D12_RANGE *pReadRange, void **ppData) - { - return m_pReal->Map(Subresource, pReadRange, ppData); - } - - virtual void STDMETHODCALLTYPE Unmap(UINT Subresource, const D3D12_RANGE *pWrittenRange) - { - return m_pReal->Unmap(Subresource, pWrittenRange); - } - virtual D3D12_RESOURCE_DESC STDMETHODCALLTYPE GetDesc() { return m_pReal->GetDesc(); } virtual D3D12_GPU_VIRTUAL_ADDRESS STDMETHODCALLTYPE GetGPUVirtualAddress() { return m_pReal->GetGPUVirtualAddress(); } + virtual HRESULT STDMETHODCALLTYPE GetHeapProperties(D3D12_HEAP_PROPERTIES *pHeapProperties, + D3D12_HEAP_FLAGS *pHeapFlags) + { + return m_pReal->GetHeapProperties(pHeapProperties, pHeapFlags); + } + + virtual HRESULT STDMETHODCALLTYPE Map(UINT Subresource, const D3D12_RANGE *pReadRange, void **ppData) + { + D3D12NOTIMP("Resource mapping"); + return m_pReal->Map(Subresource, pReadRange, ppData); + } + + virtual void STDMETHODCALLTYPE Unmap(UINT Subresource, const D3D12_RANGE *pWrittenRange) + { + D3D12NOTIMP("Resource mapping"); + return m_pReal->Unmap(Subresource, pWrittenRange); + } + virtual HRESULT STDMETHODCALLTYPE WriteToSubresource(UINT DstSubresource, const D3D12_BOX *pDstBox, const void *pSrcData, UINT SrcRowPitch, UINT SrcDepthPitch) { + D3D12NOTIMP("Resource mapping"); return m_pReal->WriteToSubresource(DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); } @@ -579,15 +588,10 @@ public: UINT DstDepthPitch, UINT SrcSubresource, const D3D12_BOX *pSrcBox) { + D3D12NOTIMP("Resource mapping"); return m_pReal->ReadFromSubresource(pDstData, DstRowPitch, DstDepthPitch, SrcSubresource, pSrcBox); } - - virtual HRESULT STDMETHODCALLTYPE GetHeapProperties(D3D12_HEAP_PROPERTIES *pHeapProperties, - D3D12_HEAP_FLAGS *pHeapFlags) - { - return m_pReal->GetHeapProperties(pHeapProperties, pHeapFlags); - } }; class WrappedID3D12RootSignature : public WrappedDeviceChild12