MCPcopy Create free account
hub / github.com/Autodesk/Aurora / copyTextureToTarget

Method copyTextureToTarget

Libraries/Aurora/Source/DirectX/PTRenderer.cpp:1365–1374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1363}
1364
1365void PTRenderer::copyTextureToTarget(ID3D12Resource* pTexture, PTTarget* pTarget)
1366{
1367 // Transition the final texture from writing (rendering to copying), then copy the final
1368 // texture to the target, and then transition back.
1369 addTransitionBarrier(
1370 pTexture, D3D12_RESOURCE_STATE_UNORDERED_ACCESS, D3D12_RESOURCE_STATE_COPY_SOURCE);
1371 pTarget->copyFromResource(pTexture, _pCommandList.Get());
1372 addTransitionBarrier(
1373 pTexture, D3D12_RESOURCE_STATE_COPY_SOURCE, D3D12_RESOURCE_STATE_UNORDERED_ACCESS);
1374}
1375
1376bool PTRenderer::isDenoisingAOVsEnabled() const
1377{

Callers

nothing calls this directly

Calls 1

copyFromResourceMethod · 0.80

Tested by

no test coverage detected