| 1363 | } |
| 1364 | |
| 1365 | void 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 | |
| 1376 | bool PTRenderer::isDenoisingAOVsEnabled() const |
| 1377 | { |
nothing calls this directly
no test coverage detected