MCPcopy Create free account
hub / github.com/crosire/reshade / CopyStructureCount

Method CopyStructureCount

source/d3d11/d3d11_device_context.cpp:772–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770 _orig->UpdateSubresource(pDstResource, DstSubresource, pDstBox, pSrcData, SrcRowPitch, SrcDepthPitch);
771}
772void 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}
792void STDMETHODCALLTYPE D3D11DeviceContext::ClearRenderTargetView(ID3D11RenderTargetView *pRenderTargetView, const FLOAT ColorRGBA[4])
793{
794#if RESHADE_ADDON

Callers

nothing calls this directly

Calls 3

to_handleFunction · 0.70
GetDescMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected