mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
fix: 部分 B8G8R8A8_UNORM 改为 R8G8B8A8_UNORM,因为前者在一些硬件上不支持 UAV
This commit is contained in:
parent
401de4df29
commit
8aab238150
9 changed files with 11 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue