Closed vlmillet closed 2 years ago
You want to check out the screenshot support files. We used it in there.
Thank you ! I've found it and began exploring it. I was wondering while reading the code why isn't there a more generic "Texture to buffer" function in the general API instead of a very specific Screenshot/SwapChain to buffer which could be based on a common code ?
The main reason is that people do not understand the performance impact of a read-back. So we make it a bit more difficult to do the wrong thing.
This is now available in the resource loader ...
Sorry, haven't noticed the change, thank you for this !
I wanted to port my gpu based mouse picking system to The Forge so I've searched the whole ResourceLoader/Renderer API and I'm not able to find how to do the equivalent of Vulkan vkCmdCopyImageToBuffer, is this possible in some way ? Thanks.