| 770 | _orig->UpdateSubresource(pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch); |
| 771 | } |
| 772 | void STDMETHODCALLTYPE D3D11DeviceContext::CopyStructureCount(ID3D11Buffer *pDstBuffer, UINT DstAlignedByteOffset, ID3D11UnorderedAccessView *pSrcView) |
| 773 | { |
| 774 | #if RESHADE_ADDON >= 2 |
| 775 | assert(pSrcView != nullptr); |
| 776 | |
| 777 | if (reshade::has_addon_event<reshade::addon_event::copy_buffer_region>()) |
| 778 | { |
| 779 | D3D11_UNORDERED_ACCESS_VIEW_DESC desc; |
| 780 | pSrcView->GetDesc(&desc); |
| 781 | com_ptr<ID3D11Resource> src; |
| 782 | pSrcView->GetResource(&src); |
| 783 | |
| 784 | if (desc.ViewDimension == D3D11_UAV_DIMENSION_BUFFER && |
| 785 | reshade::invoke_addon_event<reshade::addon_event::copy_buffer_region>(this, to_handle(src.get()), desc.Buffer.FirstElement, to_handle(pDstBuffer), DstAlignedByteOffset, desc.Buffer.NumElements)) |
| 786 | return; |
| 787 | } |
| 788 | #endif |
| 789 | |
| 790 | _orig->CopyStructureCount(pDstBuffer, DstAlignedByteOffset, pSrcView); |
| 791 | } |
| 792 | void STDMETHODCALLTYPE D3D11DeviceContext::ClearRenderTargetView(ID3D11RenderTargetView *pRenderTargetView, const FLOAT ColorRGBA[4]) |
| 793 | { |
| 794 | #if RESHADE_ADDON |