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

Method CopyGpuToGpu

GTE/Graphics/DX11/DX11Texture.cpp:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void DX11Texture::CopyGpuToGpu(ID3D11DeviceContext* context,
181 ID3D11Resource* target, uint32_t sri)
182{
183 Texture* texture = GetTexture();
184 LogAssert(sri < texture->GetNumSubresources(), "Subresource index out of range.");
185
186 // Copy from GPU memory to staging texture.
187 ID3D11Resource* dxTexture = GetDXResource();
188 context->CopySubresourceRegion(target, sri, 0, 0, 0, dxTexture, sri, nullptr);
189}
190
191void DX11Texture::CopyGpuToGpu(ID3D11DeviceContext* context, ID3D11Resource* target)
192{

Callers

nothing calls this directly

Calls 1

GetNumSubresourcesMethod · 0.80

Tested by

no test coverage detected