I have this code:
ID3D11Texture2D* Buffer;
SwapChain->GetBuffer(0, __uuidof(ID3D11Texture2D), (void**)&backBuffer);
to get a screenshot of my game, I want to blur it for my game GUI, I have no idea how to do it unfortunately
This DirectX Tool Kit tutorial covers writing HLSL to do blur/bloom. You may find it useful:
https://github.com/microsoft/DirectXTK/wiki/Writing-custom-shaders
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.