fix: 部分 B8G8R8A8_UNORM 改为 R8G8B8A8_UNORM,因为前者在一些硬件上不支持 UAV

This commit is contained in:
刘旭 2022-03-09 12:49:03 +08:00
commit 8aab238150
9 changed files with 11 additions and 11 deletions

View file

@ -141,7 +141,7 @@ bool GraphicsCaptureFrameSource::Initialize() {
desc.ArraySize = 1;
desc.SampleDesc.Count = 1;
desc.SampleDesc.Quality = 0;
desc.BindFlags = D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_UNORDERED_ACCESS;
desc.BindFlags = D3D11_BIND_SHADER_RESOURCE;
hr = App::Get().GetDeviceResources().GetD3DDevice()->CreateTexture2D(&desc, nullptr, _output.put());
if (FAILED(hr)) {
Logger::Get().ComError("创建 Texture2D 失败", hr);