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

Method CopyResource

source/d3d10/d3d10_device.cpp:546–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544 _orig->CopySubresourceRegion(pDstResource, DstSubresource, DstX, DstY, DstZ, pSrcResource, SrcSubresource, pSrcBox);
545}
546void STDMETHODCALLTYPE D3D10Device::CopyResource(ID3D10Resource *pDstResource, ID3D10Resource *pSrcResource)
547{
548#if RESHADE_ADDON >= 2
549 assert(pDstResource != nullptr && pSrcResource != nullptr);
550
551 if (reshade::invoke_addon_event<reshade::addon_event::copy_resource>(this, to_handle(pSrcResource), to_handle(pDstResource)))
552 return;
553#endif
554 _orig->CopyResource(pDstResource, pSrcResource);
555}
556void STDMETHODCALLTYPE D3D10Device::UpdateSubresource(ID3D10Resource *pDstResource, UINT DstSubresource, const D3D10_BOX *pDstBox, const void *pSrcData, UINT SrcRowPitch, UINT SrcDepthPitch)
557{
558#if RESHADE_ADDON >= 2

Callers 1

copy_resourceMethod · 0.45

Calls 1

to_handleFunction · 0.70

Tested by

no test coverage detected