mirror of
https://github.com/Blinue/Magpie.git
synced 2026-06-24 02:04:10 +00:00
[WIP] 实现 MagpieFX v2
This commit is contained in:
parent
45d59e42be
commit
7f54296a75
17 changed files with 380 additions and 321 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_RENDER_TARGET;
|
||||
desc.BindFlags = D3D11_BIND_SHADER_RESOURCE | D3D11_BIND_UNORDERED_ACCESS;
|
||||
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