'How to write (GPU) and read (CPU) texture in DirectX c++?
I made it possible to draw on a texture like Paint. After I've drawn the image, I need to read it from the GPU to the CPU, but I can't do it (ID3D11DeviceContext::Map() is not work). I know it has something to do with the texture creation setting desc.Usage as well as desc.BindFlags. How i can do what i want? I will be very grateful for your help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|