首页 > 解决方案 > Apply Blur effect to a ID3D11Texture2D

问题描述

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

标签: c++directx

解决方案


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


推荐阅读