Support for Simultaneous Render Output to Multiple Textures #6060
Replies: 2 comments
-
I don't want to serialize the copy from swap-chain either at the end of the present cycle nor the beginning of the next cycle because this would impact performance. |
Beta Was this translation helpful? Give feedback.
-
That should be all you need to render to two places. That said, it would also definitely work reliably if you rendered to your |
Beta Was this translation helpful? Give feedback.
-
Hello again,
Is there no fixed-function mechanism to save a render output to two textures simultaneously? I need to capture and display the output, and while I can wait until the next cycle to copy the texture from the swap-chain to the intermediate buffer, this would take place within the same sync block within which the swap-chain is again updated.
While I can submit the copy operation prior to the render pipeline, I cannot technically enforce that the former will complete before the latter does. I’m reasonably certain that it wouldn’t present an issue, but I really don’t know what all is going on under the hood to justify that confidence.
If there was a way to concurrently save the output to the swap-chain and a capture_texture buffer, then I would be at liberty to copy from the capture_texture without worrying about a swap-chain update.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions