c++ - 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
解决方案
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
推荐阅读
- java - 如何将 Json 转换为 java 中的集合?
- kotlin - Ktor 拦截器中的状态
- javascript - 我正在使用角度材料表可扩展行
- php - password_verify() 如何比较密码和散列密码?
- html - 如何在不影响其中的表单和按钮的情况下更改此 Bootstrap 4 卡的不透明度?
- java - 如何将数据从 Firebase 获取到哈希映射中?
- java - 从firebase检索数据后需要反转listview
- ansible - 使用 Ansible playbook 安装 Oracle12c
- jquery - 如何使用 jQuery/AJAX JSON 数据更新 HTML 列表
- javascript - 4点多项式的对角中心