MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / CopyGpuToCpu

Method CopyGpuToCpu

GTE/Graphics/DX11/DX11Engine.cpp:1697–1706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1695}
1696
1697bool DX11Engine::CopyGpuToCpu(std::shared_ptr<Buffer> const& buffer)
1698{
1699 if (!buffer->GetData())
1700 {
1701 buffer->CreateStorage();
1702 }
1703
1704 DX11Buffer* dxBuffer = static_cast<DX11Buffer*>(Bind(buffer));
1705 return dxBuffer->CopyGpuToCpu(mImmediate);
1706}
1707
1708bool DX11Engine::CopyGpuToCpu(std::shared_ptr<TextureSingle> const& texture)
1709{

Callers

nothing calls this directly

Calls 3

CreateStorageMethod · 0.80
GetDataMethod · 0.45
GetIndexMethod · 0.45

Tested by

no test coverage detected